public static interface Matchable.MatchableOptional<T>
extends java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
default java.util.Iterator<T> |
iterator() |
default <R> Eval<R> |
matches(java.util.function.Function<Matchable.CheckValueOpt<T,R>,Matchable.CheckValueOpt<T,R>> some,
java.util.function.Supplier<? extends R> otherwise) |
java.util.Optional<T> |
toOptional() |
default <R> R |
visit(java.util.function.Function<? super T,? extends R> some,
java.util.function.Supplier<? extends R> none) |
java.util.Optional<T> toOptional()
default java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
default <R> R visit(java.util.function.Function<? super T,? extends R> some, java.util.function.Supplier<? extends R> none)
default <R> Eval<R> matches(java.util.function.Function<Matchable.CheckValueOpt<T,R>,Matchable.CheckValueOpt<T,R>> some, java.util.function.Supplier<? extends R> otherwise)