| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.always()
Creates a predicate always yielding true.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterable<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterator<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <R,T1,T2,T3> |
Compositions.compose(Predicate<R> predicate,
TernaryDelegate<R,T1,T2,T3> delegate)
Composes a predicate with a ternary delegate (predicate ° delegate).
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Dispatching.ignore1st(BinaryPredicate<T2,T3> predicate,
Class<T1> ignored)
Adapts a binary predicate to a ternary predicate by ignoring first
parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Dispatching.ignore2nd(BinaryPredicate<T1,T3> predicate,
Class<T2> ignored)
Adapts a binary predicate to a ternary predicate by ignoring second
parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Dispatching.ignore3rd(BinaryPredicate<T1,T2> predicate,
Class<T3> ignored)
Adapts a binary predicate to a ternary predicate by ignoring third
parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.monitor(TernaryPredicate<T1,T2,T3> predicate,
AtomicLong calls)
Monitors calls to a ternary predicate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.never()
Creates a predicate always yielding false.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.not(TernaryPredicate<T1,T2,T3> predicate)
Negates the given predicate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterable<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterator<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Dispatching.predicate(TernaryDelegate<Boolean,T1,T2,T3> delegate)
Adapts a ternary delegate to a ternary predicate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy(TernaryPredicate<T1,T2,T3> predicate,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2,
Box<T3> param3)
Proxies a ternary predicate spying for result and parameters.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy1st(TernaryPredicate<T1,T2,T3> predicate,
Box<T1> param1)
Proxies a ternary predicate spying for first parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy2nd(TernaryPredicate<T1,T2,T3> predicate,
Box<T2> param2)
Proxies a ternary predicate spying for second parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy3rd(TernaryPredicate<T1,T2,T3> predicate,
Box<T3> param3)
Proxies a ternary predicate spying for third parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spyRes(TernaryPredicate<T1,T2,T3> predicate,
Box<Boolean> result)
Proxies a ternary predicate spying for result.
|
static <T,U,V> TernaryPredicate<T,U,V> |
Tuples.Triples.untupled(Predicate<Triple<T,U,V>> predicate)
Adapts a predicate accepting a triple to a ternary predicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.and(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> BinaryPredicate<T2,T3> |
Dispatching.curry(TernaryPredicate<T1,T2,T3> predicate,
T1 first)
Partial application of the first parameter to a ternary predicate.
|
static <T1,T2,T3> TernaryDelegate<Boolean,T1,T2,T3> |
Dispatching.delegate(TernaryPredicate<T1,T2,T3> adaptee)
Adapts a ternary predicate to a ternary delegate.
|
static <T1,T2,T3> BinaryPredicate<T1,T3> |
Dispatching.mcurry(TernaryPredicate<T1,T2,T3> predicate,
T2 second)
Partial application of the second (middle) parameter to a ternary
predicate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.monitor(TernaryPredicate<T1,T2,T3> predicate,
AtomicLong calls)
Monitors calls to a ternary predicate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.not(TernaryPredicate<T1,T2,T3> predicate)
Negates the given predicate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.or(TernaryPredicate<T1,T2,T3> first,
TernaryPredicate<T1,T2,T3> second,
TernaryPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> BinaryPredicate<T1,T2> |
Dispatching.rcurry(TernaryPredicate<T1,T2,T3> predicate,
T3 third)
Partial application of the last (rightmost) parameter to a ternary
predicate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy(TernaryPredicate<T1,T2,T3> predicate,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2,
Box<T3> param3)
Proxies a ternary predicate spying for result and parameters.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy1st(TernaryPredicate<T1,T2,T3> predicate,
Box<T1> param1)
Proxies a ternary predicate spying for first parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy2nd(TernaryPredicate<T1,T2,T3> predicate,
Box<T2> param2)
Proxies a ternary predicate spying for second parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spy3rd(TernaryPredicate<T1,T2,T3> predicate,
Box<T3> param3)
Proxies a ternary predicate spying for third parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Spies.spyRes(TernaryPredicate<T1,T2,T3> predicate,
Box<Boolean> result)
Proxies a ternary predicate spying for result.
|
static <T,U,V> Predicate<Triple<T,U,V>> |
Tuples.tupled(TernaryPredicate<T,U,V> predicate)
Adapts a ternary predicate to a predicate accepting a triple.
|
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterable<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterator<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterable<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterator<TernaryPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TransformingTernaryPredicate<R,T1,T2,T3>
Composes a predicate with a ternary delegate (predicate ° delegate).
|
| Modifier and Type | Class and Description |
|---|---|
class |
PredicateIgnoreFirstOfThree<T1,T2,T3>
Binary to ternary predicate adapter.
|
class |
PredicateIgnoreSecondOfThree<T1,T2,T3>
Binary to ternary predicate adapter.
|
class |
PredicateIgnoreThird<T1,T2,T3>
Binary to ternary predicate adapter.
|
class |
TernaryDelegateToTernaryPredicate<T1,T2,T3>
Adapts a ternary delegate with Boolean result type to a ternary predicate.
|
| Constructor and Description |
|---|
PredicateBinderFirstOfThree(TernaryPredicate<T1,T2,T3> adaptee,
T1 first) |
PredicateBinderSecondOfThree(TernaryPredicate<T1,T2,T3> adaptee,
T2 second) |
PredicateBinderThird(TernaryPredicate<T1,T2,T3> adaptee,
T3 third) |
TernaryPredicateToTernaryDelegate(TernaryPredicate<T1,T2,T3> adaptee) |
| Modifier and Type | Class and Description |
|---|---|
class |
AllMatchingTernaryPredicate<E1,E2,E3>
A composite ternary predicate yielding true when every predicate match (no
further predicate is evaluated beyond the first returning false)
|
class |
FirstMatchingTernaryPredicate<E1,E2,E3>
A composite ternary predicate yielding true when the first predicate matches
(no further predicate is evaluated beyond the first returning true)
|
| Constructor and Description |
|---|
AllMatchingTernaryPredicate(Iterable<TernaryPredicate<E1,E2,E3>> predicates) |
FirstMatchingTernaryPredicate(Iterable<TernaryPredicate<E1,E2,E3>> predicates) |
| Modifier and Type | Class and Description |
|---|---|
class |
TernaryAlways<E1,E2,E3>
A ternary predicate always returning true.
|
class |
TernaryNegator<T1,T2,T3>
Negates a predicate.
|
class |
TernaryNever<E1,E2,E3>
A ternary predicate always returning false.
|
| Constructor and Description |
|---|
TernaryNegator(TernaryPredicate<T1,T2,T3> predicate) |
| Modifier and Type | Class and Description |
|---|---|
class |
TernaryCapturingPredicate<T1,T2,T3>
Proxies a predicate capturing parameters and result.
|
class |
TernaryMonitoringPredicate<T1,T2,T3>
Proxies a ternary delegate, monitoring its calls.
|
| Constructor and Description |
|---|
TernaryCapturingPredicate(TernaryPredicate<T1,T2,T3> nested,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2,
Box<T3> param3) |
TernaryMonitoringPredicate(TernaryPredicate<T1,T2,T3> nested,
AtomicLong calls) |
| Modifier and Type | Class and Description |
|---|---|
class |
UnaryToTernaryPredicate<T1,T2,T3>
Adapts a unary predicate handling triples to a ternary predicate.
|
| Constructor and Description |
|---|
TernaryToUnaryPredicate(TernaryPredicate<T1,T2,T3> predicate) |
Copyright © 2016. All rights reserved.