T
- Input type to match againstR
- Return type if matchedpublic static class Matchable.CheckValueOpt<T,R>
extends java.lang.Object
is(when(1,2,3),then("match")) : must have values 1,2,3 only in that order
has(when(1,2,3),then("match")) : must have values 1,2,3 in that order, but may also have additional values
Modifier and Type | Field and Description |
---|---|
protected com.aol.cyclops.internal.matcher2.MatchableCase<R> |
simplerCase |
Constructor and Description |
---|
CheckValueOpt() |
Modifier and Type | Method and Description |
---|---|
Matchable.CheckValueOpt<T,R> |
is(Matchable.MTuple1<java.util.function.Predicate<? super T>> when,
java.util.function.Supplier<? extends R> then) |
<V> Matchable.CheckValueOpt<T,R> |
isEmpty(java.util.function.Supplier<? extends R> then) |
protected final com.aol.cyclops.internal.matcher2.MatchableCase<R> simplerCase
public final <V> Matchable.CheckValueOpt<T,R> isEmpty(java.util.function.Supplier<? extends R> then)
public final Matchable.CheckValueOpt<T,R> is(Matchable.MTuple1<java.util.function.Predicate<? super T>> when, java.util.function.Supplier<? extends R> then)