/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

renato.athaydes.com
| | cr.openjdk.java.net


2.5 parsecs

Travel
| |
| | javahippie.net

This week JEP 425: Virtual Threads (Preview) was moved from Draft status to Candidate status. While this announcement does not necessarily mean that JEP 425 ...
2.7 parsecs

Travel
| |
| | www.monkeysnatchbanana.com


7.7 parsecs

Travel
| |
| | konradreiche.com

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...
34.5 parsecs

Travel
|