Skip to content

v1.2.0

Compare
Choose a tag to compare
@aNNiMON aNNiMON released this 12 Apr 18:59
· 79 commits to master since this release
  • Added Optional.mapToBoolean (thanks to @bejibx)
  • Added Stream.equalsOnly operator (thanks to @operando)
  • Added deepEquals, requireNonNullElse, requireNonNullElseGet, isNull, nonNull and requireNonNullElements methods to Objects (thanks @ened for suggestion)
  • Added orElseThrow() method to Optional classes. Please, prefer this method instead of get() as it better reflects the behavior of the method
  • Added toUnmodifiableList(), toUnmodifiableSet() and toUnmodifiableMap() collectors from Java 10 (thanks to @javadev and @PromanSEW). See PromanSEW's comment
  • The Collectors.toMap implementation was changed to match Java 8 specs. toMap(keyMapper), toMap(keyMapper, valueMapper) and toMap(keyMapper, valueMapper, mapFactory) now disallows duplicate keys. If the mapped keys contain duplicates, use new toMap(keyMapper, valueMapper, mergeFunction) and toMap(keyMapper, valueMapper, mergeFunction, mapFactory) methods
  • Removed useless FunctionalInterface annotation
  • Removed deprecated Stream.getIterator method