T
- Input type to match againstR
- Return type if matchedpublic static class Matchable.CheckValue5<T1,T2,T3,T4,T5,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 |
---|
CheckValue5() |
Modifier and Type | Method and Description |
---|---|
Matchable.CheckValue5<T1,T2,T3,T4,T5,R> |
is(Matchable.MTuple5<java.util.function.Predicate<? super T1>,java.util.function.Predicate<? super T2>,java.util.function.Predicate<? super T3>,java.util.function.Predicate<? super T4>,java.util.function.Predicate<? super T5>> when,
java.util.function.Supplier<? extends R> then)
Check that the provided Tuple-of-Predicates (use
Matchable.when(Predicate, Predicate, Predicate, Predicate, Predicate) or Matchable.when(Object,Object,Object, Object, Object)
to create it) matches the first 5 values of our target values to match on |
Matchable.CheckValue4<T1,T2,T3,T4,R> |
isEmpty(java.util.function.Supplier<? extends R> then) |
protected final com.aol.cyclops.internal.matcher2.MatchableCase<R> simplerCase
public final Matchable.CheckValue5<T1,T2,T3,T4,T5,R> is(Matchable.MTuple5<java.util.function.Predicate<? super T1>,java.util.function.Predicate<? super T2>,java.util.function.Predicate<? super T3>,java.util.function.Predicate<? super T4>,java.util.function.Predicate<? super T5>> when, java.util.function.Supplier<? extends R> then)
Matchable.when(Predicate, Predicate, Predicate, Predicate, Predicate)
or Matchable.when(Object,Object,Object, Object, Object)
to create it) matches the first 5 values of our target values to match onwhen
- Tuple containing a predicates to match against the first 5 elements / fieldsthen
- Supplier to execute provide return value if match found