-
Extension methods
ifTrue
,ifNullOrTrue
,ifFalse
andifNullOrFalse
for theBoolean
wrapper type (see book chapter Testing Conditions on Primitive Values) -
General extension methods
asType
,ifNotNull
,recoverNull
/requireNonNullElse
, andrecoverNull
/requireNonNullElseGet
for objects (see book chapter Objects) -
Introduced
Try
type, which represents a computation result that may have failed. (book chapter Try) -
Added the
OptionalBoolean
class, as a replacement forOptional<Boolean>
(book chapter `OptionalBoolean)
-
Added
combinations
andcombinationsWith
extension methods forIterator
andIterable
to generate cartesian products. -
Added
withoutAll
extension methods forIterable
andIterator
to filter elements from the source available in anotherIterable
. -
Added
partitionBy
extension methods forIterator
andIterable
, partitioning elements into two aggregates: selected and rejected. -
Added
Iterator
/Iterable
extension methodsgroupIntoListBy
andgroupIntoSetBy
to group elements by given classes. -
Added
into
extension methods toIterator
/Iterable
to add elements to one or moreCollection
s. -
Added
summarize
extension methods forPrimitiveIterator
s to compute count, min, max, average and sum of provided values. -
Added
streamRemainingExhaustive
extension method forPrimitiveIterator
s that is guaranteed to pull elements from the originating iterator. -
Functional factory methods for and in
LongIterable
andDoubleIterable
. -
Added
mapOrGet
extension method forOptional
. -
Added
forEach
method for object arrays to iterate over elements without instantiation of an iterator.
Everything new 😊
-
Extension methods for
Optional
s -
Extension methods for Xtend
IntegerRange
s -
Extension methods for primitive arrays
-
Extension methods for Java
Stream
s -
Extension methods for
Iterable
s -
Extension methods for Java
String
s -
Extension methods for Java
Duration
s -
Extension methods for Xtend functions
-
Extension methods for Java
CompletableFuture
s -
Scheduling utilities
-
Asynchronous execution utilities
-
Primitive
Iterable
s