Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 3.08 KB

CHANGES.adoc

File metadata and controls

68 lines (47 loc) · 3.08 KB

Changes to Xtensions

Version 1.3.0 (unreleased)

Added

  • Extension methods ifTrue, ifNullOrTrue, ifFalse and ifNullOrFalse for the Boolean wrapper type (see book chapter Testing Conditions on Primitive Values)

  • General extension methods asType, ifNotNull, recoverNull/requireNonNullElse, and recoverNull/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 for Optional<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 and combinationsWith extension methods for Iterator and Iterable to generate cartesian products.

  • Added withoutAll extension methods for Iterable and Iterator to filter elements from the source available in another Iterable.

  • Added partitionBy extension methods for Iterator and Iterable, partitioning elements into two aggregates: selected and rejected.

  • Added Iterator/Iterable extension methods groupIntoListBy and groupIntoSetBy to group elements by given classes.

  • Added into extension methods to Iterator/Iterable to add elements to one or more Collections.

  • Added summarize extension methods for PrimitiveIterators to compute count, min, max, average and sum of provided values.

  • Added streamRemainingExhaustive extension method for PrimitiveIterators that is guaranteed to pull elements from the originating iterator.

  • Functional factory methods for and in LongIterable and DoubleIterable.

  • Added mapOrGet extension method for Optional.

  • 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 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