Functional Interface Function When to use java.util.function.Predicate<T> boolean test(T t); Boolean expression java.util.function.Consumer<T> void accept(T t); Just process T, return nothing java.util.function.Function<T, R> R apply(T t); Transform, compute from type T to type R java.lang.Comparable<T> int compareTo(T o); Compare one T object to another java.lang.Runnable void run(); Accept no params and return nothing java.util.concurrent.Callable<V> V…Details
Recently I got a MBP to enjoy the Terminal like in Linux but that fancy cannot be entertained for long. I accidentally dropped the laptop to the floor and the screen got broken beyond repair. And I wonder how can I get it repaired with this Coronavirus situation. Macbook Pro is clearly not as good…Details
Common Boot Starters Name Description spring-boot-starter-thymeleaf It is used to build MVC web applications using Thymeleaf views. spring-boot-starter-data-couchbase It is used for the Couchbase document-oriented database and Spring Data Couchbase. spring-boot-starter-artemis It is used for JMS messaging using Apache Artemis. spring-boot-starter-web-services It is used for Spring Web Services. spring-boot-starter-mail It is used to support Java…Details
If you work with Spring, these images should help a lot when reminding Spring architecture or component
1. The Intelligent Investor by Ben Graham 2. Learn to Earn by Peter Lynch 3. One Up on Wall Street by Peter Lynch 4. Beating the Street by Peter Lynch 5. The Little Book of Value Investing by Christopher H. Browne 6. Security Analysis by Benjamin Graham and David L. Dodd 7. Common Stocks and…Details
I recently got a Mac for some K8s commands which I couldn’t install on Windows. Even I still work mainly with my Windows machine it is much faster and easier to manage stuff, I think MacOS is really nice to install some Linux commands via brew and work with iOS apps. But there are couple…Details
Even Java 8 has been there for a while, it’s still a good option to start using with some old applications, following are commands to install the Java 8 and the latest version as well.