Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java 8 Features (Stream (match (anyMatch(Any=>Boolean),…
Java 8 Features
-
-
Map<K,V> APIs
-
-
computeIfPresent(k, (k,v) -> ...)
computeIfAbsent(k, (k,v) -> ...)
merge(k,v,(oldV,newV)-> ...)
put v if k not exist, or merge oldV and newV with function
-
Date API
-
-
LocalTime
-
-
ChronoUnit.HOURS.between(now1,now2)
-
parse("timestring", formatter)
-
-
-
-
-
Annotation
-
Target({
ElementType.TYPE_PARAMETER,
ElementType.TYPE_USE})
-
add padding to variable, so no other variable is on the same cache page, hence reducing false sharing, and improve performance
-