| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.always()
Creates a predicate always yielding true.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.and(Iterable<BinaryPredicate<T1,T2>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.and(Iterator<BinaryPredicate<T1,T2>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <R,T1,T2> BinaryPredicate<T1,T2> |
Compositions.compose(Predicate<R> predicate,
BinaryDelegate<R,T1,T2> delegate)
Composes a predicate with a binary delegate (predicate ° delegate).
|
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> BinaryPredicate<T1,T2> |
Dispatching.ignore1st(Predicate<T2> predicate,
Class<T1> ignored)
Adapts a predicate to a binary predicate by ignoring first parameter.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Dispatching.ignore2nd(Predicate<T1> predicate,
Class<T2> ignored)
Adapts a predicate to a binary predicate by ignoring second parameter.
|
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> BinaryPredicate<T1,T2> |
Spies.monitor(BinaryPredicate<T1,T2> predicate,
AtomicLong calls)
Monitors calls to a binary predicate
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.never()
Creates a predicate always yielding false.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.not(BinaryPredicate<T1,T2> predicate)
Negates the given predicate.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.or(Iterable<BinaryPredicate<T1,T2>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.or(Iterator<BinaryPredicate<T1,T2>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Dispatching.predicate(BinaryDelegate<Boolean,T1,T2> delegate)
Adapts a binary delegate to a binary predicate
|
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> BinaryPredicate<T1,T2> |
Spies.spy(BinaryPredicate<T1,T2> predicate,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2)
Proxies a binary predicate spying for result and parameters.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Spies.spy1st(BinaryPredicate<T1,T2> predicate,
Box<T1> param1)
Proxies a binary predicate spying for first parameter
|
static <T1,T2> BinaryPredicate<T1,T2> |
Spies.spy2nd(BinaryPredicate<T1,T2> predicate,
Box<T2> param2)
Proxies a binary predicate spying for second parameter.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Spies.spyRes(BinaryPredicate<T1,T2> predicate,
Box<Boolean> result)
Proxies a binary predicate spying for result.
|
static <T,U> BinaryPredicate<T,U> |
Tuples.Pairs.untupled(Predicate<Pair<T,U>> predicate)
Adapts a predicate accepting a pair to a binary predicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.and(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> Predicate<T2> |
Dispatching.curry(BinaryPredicate<T1,T2> predicate,
T1 first)
Partial application of the first parameter to a binary predicate.
|
static <T1,T2> BinaryDelegate<Boolean,T1,T2> |
Dispatching.delegate(BinaryPredicate<T1,T2> adaptee)
Adapts a binary predicate to a binary 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> BinaryPredicate<T1,T2> |
Spies.monitor(BinaryPredicate<T1,T2> predicate,
AtomicLong calls)
Monitors calls to a binary predicate
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.not(BinaryPredicate<T1,T2> predicate)
Negates the given predicate.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.or(BinaryPredicate<T1,T2> first,
BinaryPredicate<T1,T2> second,
BinaryPredicate<T1,T2> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> Predicate<T1> |
Dispatching.rcurry(BinaryPredicate<T1,T2> predicate,
T2 second)
Partial application of the last (rightmost) parameter to a binary
predicate.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Spies.spy(BinaryPredicate<T1,T2> predicate,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2)
Proxies a binary predicate spying for result and parameters.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Spies.spy1st(BinaryPredicate<T1,T2> predicate,
Box<T1> param1)
Proxies a binary predicate spying for first parameter
|
static <T1,T2> BinaryPredicate<T1,T2> |
Spies.spy2nd(BinaryPredicate<T1,T2> predicate,
Box<T2> param2)
Proxies a binary predicate spying for second parameter.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Spies.spyRes(BinaryPredicate<T1,T2> predicate,
Box<Boolean> result)
Proxies a binary predicate spying for result.
|
static <T,U> Predicate<Pair<T,U>> |
Tuples.tupled(BinaryPredicate<T,U> predicate)
Adapts a binary predicate to a predicate accepting a pair.
|
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.and(Iterable<BinaryPredicate<T1,T2>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.and(Iterator<BinaryPredicate<T1,T2>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.or(Iterable<BinaryPredicate<T1,T2>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Logic.Binary.or(Iterator<BinaryPredicate<T1,T2>> predicates)
Creates a composite OR predicate from the given predicates.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TransformingBinaryPredicate<R,T1,T2>
Composes a predicate with a binary delegate (predicate ° delegate).
|
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryDelegateToBinaryPredicate<T1,T2>
Adapts a binary delegate with Boolean result type to a binary Predicate.
|
class |
PredicateBinderFirstOfThree<T1,T2,T3>
Ternary to binary predicate adapter.
|
class |
PredicateBinderSecondOfThree<T1,T2,T3>
Ternary to binary predicate adapter.
|
class |
PredicateBinderThird<T1,T2,T3>
Ternary to binary predicate adapter.
|
class |
PredicateIgnoreFirst<T1,T2>
Unary to binary predicate adapter.
|
class |
PredicateIgnoreSecond<T1,T2>
Unary to binary predicate adapter.
|
| Constructor and Description |
|---|
BinaryPredicateToBinaryDelegate(BinaryPredicate<T1,T2> adaptee) |
PredicateBinderFirst(BinaryPredicate<T1,T2> adaptee,
T1 first) |
PredicateBinderSecond(BinaryPredicate<T1,T2> adaptee,
T2 second) |
PredicateIgnoreFirstOfThree(BinaryPredicate<T2,T3> adaptee) |
PredicateIgnoreSecondOfThree(BinaryPredicate<T1,T3> adaptee) |
PredicateIgnoreThird(BinaryPredicate<T1,T2> adaptee) |
| Modifier and Type | Class and Description |
|---|---|
class |
AllMatchingBinaryPredicate<E1,E2>
A composite binary predicate yielding true when every predicate match (no
further predicate is evaluated beyond the first returning false)
|
class |
FirstMatchingBinaryPredicate<E1,E2>
A composite binary predicate yielding true when the first predicate matches
(no further predicate is evaluated beyond the first returning true)
|
| Constructor and Description |
|---|
AllMatchingBinaryPredicate(Iterable<BinaryPredicate<E1,E2>> predicates) |
FirstMatchingBinaryPredicate(Iterable<BinaryPredicate<E1,E2>> predicates) |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryAlways<E1,E2>
A binary predicate always returning true.
|
class |
BinaryNegator<T1,T2>
Negates a predicate.
|
class |
BinaryNever<E1,E2>
A binary predicate always returning false.
|
| Constructor and Description |
|---|
BinaryNegator(BinaryPredicate<T1,T2> predicate) |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryCapturingPredicate<T1,T2>
Proxies a binary predicate capturing parameters and result.
|
class |
BinaryMonitoringPredicate<T1,T2>
Proxies a binary predicate monitoring its calls.
|
| Constructor and Description |
|---|
BinaryCapturingPredicate(BinaryPredicate<T1,T2> nested,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2) |
BinaryMonitoringPredicate(BinaryPredicate<T1,T2> nested,
AtomicLong calls) |
| Modifier and Type | Class and Description |
|---|---|
class |
UnaryToBinaryPredicate<T1,T2>
Adapts a unary predicate handling pairs to a binary predicate.
|
| Constructor and Description |
|---|
BinaryToUnaryPredicate(BinaryPredicate<T1,T2> predicate) |
Copyright © 2016. All rights reserved.