Interface IotaMultiPredicate
- All Known Implementing Classes:
IotaMultiPredicate.All,IotaMultiPredicate.Any,IotaMultiPredicate.Either,IotaMultiPredicate.Pair,IotaMultiPredicate.Triple
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Used to determine whether a given set of iotas on the stack are acceptable types for
the operator that is storing this IotaMultiPredicate.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionstatic IotaMultiPredicateall(IotaPredicate child) The resulting IotaMultiPredicate only returns true if all iotas passed into test match the type dictated by child.static IotaMultiPredicateany(IotaPredicate needs, IotaPredicate fallback) The resulting IotaMultiPredicate returns true if at least one iota passed matches needs, and the rest match fallback.static IotaMultiPredicateeither(IotaMultiPredicate first, IotaMultiPredicate second) The resulting IotaMultiPredicate returns true if either the first returns true or the second returns true.static IotaMultiPredicatepair(IotaPredicate first, IotaPredicate second) The resulting IotaMultiPredicate returns true if two iotas are passed, the first matching first, and the second matching second.booleanstatic IotaMultiPredicatetriple(IotaPredicate first, IotaPredicate second, IotaPredicate third) The resulting IotaMultiPredicate returns true if three iotas are passed, the first matching first, the second matching second, and the third matching third.
-
Method Details
-
test
-
all
The resulting IotaMultiPredicate only returns true if all iotas passed into test match the type dictated by child. -
pair
The resulting IotaMultiPredicate returns true if two iotas are passed, the first matching first, and the second matching second. -
triple
The resulting IotaMultiPredicate returns true if three iotas are passed, the first matching first, the second matching second, and the third matching third. -
any
The resulting IotaMultiPredicate returns true if at least one iota passed matches needs, and the rest match fallback. -
either
The resulting IotaMultiPredicate returns true if either the first returns true or the second returns true.
-