Changes to Xtensions
Version 1.3.0 (unreleased)
Added
-
Extension methods
ifTrue,ifNullOrTrue,ifFalseandifNullOrFalsefor theBooleanwrapper type (see book chapter Testing Conditions on Primitive Values) -
General extension methods
asType,ifNotNull,recoverNull/requireNonNullElse, andrecoverNull/requireNonNullElseGetfor objects (see book chapter Objects) -
Introduced
Trytype, which represents a computation result that may have failed. (book chapter Try) -
Added the
OptionalBooleanclass, 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
combinationsandcombinationsWithextension methods forIteratorandIterableto generate cartesian products. -
Added
withoutAllextension methods forIterableandIteratorto filter elements from the source available in anotherIterable. -
Added
partitionByextension methods forIteratorandIterable, partitioning elements into two aggregates: selected and rejected. -
Added
Iterator/Iterableextension methodsgroupIntoListByandgroupIntoSetByto group elements by given classes. -
Added
intoextension methods toIterator/Iterableto add elements to one or moreCollections. -
Added
summarizeextension methods forPrimitiveIterators to compute count, min, max, average and sum of provided values. -
Added
streamRemainingExhaustiveextension method forPrimitiveIterators that is guaranteed to pull elements from the originating iterator. -
Functional factory methods for and in
LongIterableandDoubleIterable. -
Added
mapOrGetextension method forOptional. -
Added
forEachmethod 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
Optionals -
Extension methods for Xtend
IntegerRanges -
Extension methods for primitive arrays
-
Extension methods for Java
Streams -
Extension methods for
Iterables -
Extension methods for Java
Strings -
Extension methods for Java
Durations -
Extension methods for Xtend functions
-
Extension methods for Java
CompletableFutures -
Scheduling utilities
-
Asynchronous execution utilities
-
Primitive
Iterables