OptionalNary are equal only if they contain
equal elements, comparing them in iteration orderStream.flatMap(Function) transformation but accepts Optional
as result for the mapper instead of Stream.Optional.flatMap(Function) but it can be applied to more
than one element.Iterable and Stream because Iterable defines a default
implementation.Iterable.forEach(Consumer) definitionMapNary, returns the value,
otherwise throws NoSuchElementException, or MoreThanOneElementException.Nary is based on its contained elements.true if there is only a value present, otherwise false.null, then it's skipped, reducing the
amount of elements contained in the returned Nary.Optional.map(Function) and
different from Stream.map(Function) that takes null
as valid resultsUnary offers as a replacement for Optional.Optional to be as compatible and intuitive as possible but it departs
from its concepts adding own variants to simplify o complete use cases.other.other and return
the result of that invocation.Iterable and Stream because Iterable defines a default
implementation.Iterable.spliterator() definitionCopyright © 2020. All rights reserved.