| Package | Description |
|---|---|
| net.emaze.dysfunctional | |
| net.emaze.dysfunctional.dispatching.composing | |
| net.emaze.dysfunctional.dispatching.logic | |
| net.emaze.dysfunctional.dispatching.spying |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.always()
Creates a predicate always yielding true.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterable<TriPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterator<TriPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3,R> |
Compositions.compose(Predicate<R> predicate,
TriFunction<T1,T2,T3,R> function)
Composes a predicate with a ternary function (predicate ° function).
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Dispatching.ignore1st(BiPredicate<T2,T3> predicate,
Class<T1> ignored)
Adapts a binary predicate to a ternary predicate by ignoring first
parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Dispatching.ignore2nd(BiPredicate<T1,T3> predicate,
Class<T2> ignored)
Adapts a binary predicate to a ternary predicate by ignoring second
parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Dispatching.ignore3rd(BiPredicate<T1,T2> predicate,
Class<T3> ignored)
Adapts a binary predicate to a ternary predicate by ignoring third
parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.monitor(TriPredicate<T1,T2,T3> predicate,
AtomicLong calls)
Monitors calls to a ternary predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.never()
Creates a predicate always yielding false.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.not(TriPredicate<T1,T2,T3> predicate)
Negates the given predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterable<TriPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterator<TriPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Dispatching.predicate(TriFunction<T1,T2,T3,Boolean> function)
Adapts a ternary function to a ternary predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spy(TriPredicate<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> TriPredicate<T1,T2,T3> |
Spies.spy1st(TriPredicate<T1,T2,T3> predicate,
Box<T1> param1)
Proxies a ternary predicate spying for first parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spy2nd(TriPredicate<T1,T2,T3> predicate,
Box<T2> param2)
Proxies a ternary predicate spying for second parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spy3rd(TriPredicate<T1,T2,T3> predicate,
Box<T3> param3)
Proxies a ternary predicate spying for third parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spyRes(TriPredicate<T1,T2,T3> predicate,
Box<Boolean> result)
Proxies a ternary predicate spying for result.
|
static <T,U,V> TriPredicate<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> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> BiPredicate<T2,T3> |
Dispatching.curry(TriPredicate<T1,T2,T3> predicate,
T1 first)
Partial application of the first parameter to a ternary predicate.
|
static <T1,T2,T3> TriFunction<T1,T2,T3,Boolean> |
Dispatching.function(TriPredicate<T1,T2,T3> adaptee)
Adapts a ternary predicate to a ternary function.
|
static <T1,T2,T3> BiPredicate<T1,T3> |
Dispatching.mcurry(TriPredicate<T1,T2,T3> predicate,
T2 second)
Partial application of the second (middle) parameter to a ternary
predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.monitor(TriPredicate<T1,T2,T3> predicate,
AtomicLong calls)
Monitors calls to a ternary predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.not(TriPredicate<T1,T2,T3> predicate)
Negates the given predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> BiPredicate<T1,T2> |
Dispatching.rcurry(TriPredicate<T1,T2,T3> predicate,
T3 third)
Partial application of the last (rightmost) parameter to a ternary
predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spy(TriPredicate<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> TriPredicate<T1,T2,T3> |
Spies.spy1st(TriPredicate<T1,T2,T3> predicate,
Box<T1> param1)
Proxies a ternary predicate spying for first parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spy2nd(TriPredicate<T1,T2,T3> predicate,
Box<T2> param2)
Proxies a ternary predicate spying for second parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spy3rd(TriPredicate<T1,T2,T3> predicate,
Box<T3> param3)
Proxies a ternary predicate spying for third parameter.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Spies.spyRes(TriPredicate<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(TriPredicate<T,U,V> predicate)
Adapts a ternary predicate to a predicate accepting a triple.
|
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterable<TriPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.and(Iterator<TriPredicate<T1,T2,T3>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterable<TriPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
Logic.Ternary.or(Iterator<TriPredicate<T1,T2,T3>> predicates)
Creates a composite OR predicate from the given predicates.
|
| 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<TriPredicate<E1,E2,E3>> predicates) |
FirstMatchingTernaryPredicate(Iterable<TriPredicate<E1,E2,E3>> predicates) |
| Modifier and Type | Class and Description |
|---|---|
class |
TernaryAlways<E1,E2,E3>
A ternary predicate always returning true.
|
class |
TernaryNever<E1,E2,E3>
A ternary predicate always returning false.
|
| Modifier and Type | Method and Description |
|---|---|
default TriPredicate<T1,T2,T3> |
TriPredicate.and(TriPredicate<T1,T2,T3> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default TriPredicate<T1,T2,T3> |
TriPredicate.negate()
Returns a predicate that represents the logical negation of this
predicate.
|
default TriPredicate<T1,T2,T3> |
TriPredicate.or(TriPredicate<T1,T2,T3> other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
| Modifier and Type | Method and Description |
|---|---|
default TriPredicate<T1,T2,T3> |
TriPredicate.and(TriPredicate<T1,T2,T3> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default TriPredicate<T1,T2,T3> |
TriPredicate.or(TriPredicate<T1,T2,T3> other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
| 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 function, monitoring its calls.
|
| Constructor and Description |
|---|
TernaryCapturingPredicate(TriPredicate<T1,T2,T3> nested,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2,
Box<T3> param3) |
TernaryMonitoringPredicate(TriPredicate<T1,T2,T3> nested,
AtomicLong calls) |
Copyright © 2017. All rights reserved.