|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.functor.core.composite.Conditional
public final class Conditional
Utility methods for creating conditional functors.
| Constructor Summary | |
|---|---|
Conditional()
Create a new Conditional. |
|
| Method Summary | ||
|---|---|---|
static
|
function(BinaryPredicate<? super L,? super R> q,
BinaryFunction<? super L,? super R,? extends T> r,
BinaryFunction<? super L,? super R,? extends T> s)
Create a conditional binary function. |
|
static
|
function(UnaryPredicate<? super A> q,
UnaryFunction<? super A,? extends T> r,
UnaryFunction<? super A,? extends T> s)
Create a conditional function. |
|
static
|
predicate(BinaryPredicate<? super L,? super R> q,
BinaryPredicate<? super L,? super R> r,
BinaryPredicate<? super L,? super R> s)
Create a conditional binary predicate. |
|
static
|
predicate(UnaryPredicate<? super A> q,
UnaryPredicate<? super A> r,
UnaryPredicate<? super A> s)
Create a conditional predicate. |
|
static
|
procedure(BinaryPredicate<? super L,? super R> q,
BinaryProcedure<? super L,? super R> r,
BinaryProcedure<? super L,? super R> s)
Create a conditional binary procedure. |
|
static
|
procedure(UnaryPredicate<? super A> q,
UnaryProcedure<? super A> r,
UnaryProcedure<? super A> s)
Create a conditional procedure. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Conditional()
| Method Detail |
|---|
public static final <A> UnaryProcedure<A> procedure(UnaryPredicate<? super A> q,
UnaryProcedure<? super A> r,
UnaryProcedure<? super A> s)
q - ifr - thens - else
public static final <A,T> UnaryFunction<A,T> function(UnaryPredicate<? super A> q,
UnaryFunction<? super A,? extends T> r,
UnaryFunction<? super A,? extends T> s)
q - ifr - thens - else
public static final <A> UnaryPredicate<A> predicate(UnaryPredicate<? super A> q,
UnaryPredicate<? super A> r,
UnaryPredicate<? super A> s)
q - ifr - thens - else
public static final <L,R> BinaryProcedure<L,R> procedure(BinaryPredicate<? super L,? super R> q,
BinaryProcedure<? super L,? super R> r,
BinaryProcedure<? super L,? super R> s)
q - ifr - thens - else
public static final <L,R,T> BinaryFunction<L,R,T> function(BinaryPredicate<? super L,? super R> q,
BinaryFunction<? super L,? super R,? extends T> r,
BinaryFunction<? super L,? super R,? extends T> s)
q - ifr - thens - else
public static final <L,R> BinaryPredicate<L,R> predicate(BinaryPredicate<? super L,? super R> q,
BinaryPredicate<? super L,? super R> r,
BinaryPredicate<? super L,? super R> s)
q - ifr - thens - else
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||