Changes to Xtensions
Version 1.3.0 (unreleased)
Added
-
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)
Version 1.2.0 - 2019-04-10
Added
-
Added helpers for handling primitive values at the end of null-safe navigation chains
Changed
-
Increased minimum Xtend version to 2.15, mainly due to build issues
Version 1.1.0 - 2018-07-23
Added
-
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.
Changed
-
Bumped Xtend minimum version to
2.13
Version 1.0.0 - 2018-03-02
Added
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