Releases: jbock-java/either
Releases · jbock-java/either
1.5.2
either 1.5
- move static methods
optionalList,toValidList,toValidListAllto a utility class:Eithers - add
Eithers.toOptionalList, which returns a collector that accumulates intoOptional<List<T>>
either 1.4
- refactoring: inline internal helper methods to improve readability
- add
optionalList, a static utility method that converts fromList<E>toOptional<List<E>>, by mapping an empty List to an empty Optional, which can make it easier to express certain filter operations
either 1.3
- remove
OptionalLeft getLeft()now returns anOptional
either 1.2
- Rename
accepttoifPresentOrElse. This is a more familiar name. - Remove
acceptRight(Consumer). It can be expressed asgetRight().ifPresent(Consumer). - Remove
acceptLeft(Consumer). It can be expressed asgetLeft().ifPresent(Consumer). - Performance improvement:
map,flatMapandfilterreturn the same Either instance, if invoked on a Left. Same applies to their left-side mirror methods, if invoked on a Right.
either 1.1
- remove
io.jbock.util.Optional, usejava.util.Optionalinstead