You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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