/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.chrisritchie.org
| | nikgrozev.com
2.3 parsecs away

Travel
| | Oracle has recently released a 3-week JDK 8 Massive Open and Online Course called "Lambdas and Streams", which discusses the new JDK8 functional features in ...
| | studiofreya.org
1.3 parsecs away

Travel
| |
| | konradreiche.com
2.6 parsecs away

Travel
| | Since most of the Java code I wrote in the past was on Android I was not able to enjoy too many Java 8 features yet. Though recently I wrote a microservice in Java using Spring Boot where I could make full use of lambdas and functional interfaces. The following method, for instance, returns the sum of all transactions for a specified instance by traversing their children. @RequestMapping(value = "/transaction/sum/{id}", method = RequestMethod.GET) BigDecimal Sum sum(@PathVariable long id) { List transactions = new ArrayList<>(); Transaction current = repository.find(id); while (current != null) { transactions.add(current); current = current.getChild(); } return transactions.stream().map(t -> t.getAmount()) .reduce(BigDecimal.ZERO, BigDecimal::add); } As some...
| | www.aligelenler.com
17.0 parsecs away

Travel
| Open Source Software and Database Technologies, Java, J2EE