|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.functor.core.composite.Conditional
public final class Conditional
Utility methods for creating conditional functors.
Constructor Summary | |
---|---|
Conditional()
Conditional instances should NOT be constructed in
standard programming. |
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 BinaryFunction. |
|
static
|
function(Predicate q,
Function<? extends T> r,
Function<? extends T> s)
Create a conditional Function. |
|
static
|
function(UnaryPredicate<? super A> q,
UnaryFunction<? super A,? extends T> r,
UnaryFunction<? super A,? extends T> s)
Create a conditional UnaryFunction. |
|
static
|
predicate(BinaryPredicate<? super L,? super R> q,
BinaryPredicate<? super L,? super R> r,
BinaryPredicate<? super L,? super R> s)
Create a conditional BinaryPredicate. |
|
static Predicate |
predicate(Predicate q,
Predicate r,
Predicate s)
Create a conditional Predicate. |
|
static
|
predicate(UnaryPredicate<? super A> q,
UnaryPredicate<? super A> r,
UnaryPredicate<? super A> s)
Create a conditional UnaryPredicate. |
|
static
|
procedure(BinaryPredicate<? super L,? super R> q,
BinaryProcedure<? super L,? super R> r)
Create a guarded BinaryProcedure. |
|
static
|
procedure(BinaryPredicate<? super L,? super R> q,
BinaryProcedure<? super L,? super R> r,
BinaryProcedure<? super L,? super R> s)
Create a conditional BinaryProcedure. |
|
static Procedure |
procedure(Predicate q,
Procedure r)
Create a guarded Procedure. |
|
static Procedure |
procedure(Predicate q,
Procedure r,
Procedure s)
Create a conditional Procedure. |
|
static
|
procedure(UnaryPredicate<? super A> q,
UnaryProcedure<? super A> r)
Create a guarded UnaryProcedure. |
|
static
|
procedure(UnaryPredicate<? super A> q,
UnaryProcedure<? super A> r,
UnaryProcedure<? super A> s)
Create a conditional UnaryProcedure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Conditional()
Conditional
instances should NOT be constructed in
standard programming. Instead, the methods of the class should be invoked
statically.
This constructor is public to permit tools that require a JavaBean instance to operate.
Method Detail |
---|
public static Procedure procedure(Predicate q, Procedure r)
q
- ifr
- then
public static Procedure procedure(Predicate q, Procedure r, Procedure s)
q
- ifr
- thens
- else
public static <T> Function<T> function(Predicate q, Function<? extends T> r, Function<? extends T> s)
q
- ifr
- thens
- else
public static Predicate predicate(Predicate q, Predicate r, Predicate s)
q
- ifr
- thens
- else
public static <A> UnaryProcedure<A> procedure(UnaryPredicate<? super A> q, UnaryProcedure<? super A> r)
q
- ifr
- then
public static <A> UnaryProcedure<A> procedure(UnaryPredicate<? super A> q, UnaryProcedure<? super A> r, UnaryProcedure<? super A> s)
q
- ifr
- thens
- else
public static <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 <A> UnaryPredicate<A> predicate(UnaryPredicate<? super A> q, UnaryPredicate<? super A> r, UnaryPredicate<? super A> s)
q
- ifr
- thens
- else
public static <L,R> BinaryProcedure<L,R> procedure(BinaryPredicate<? super L,? super R> q, BinaryProcedure<? super L,? super R> r)
q
- ifr
- then
public static <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 <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 <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 |