|
||||||||||
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.Composite
public final class Composite
Utility/fluent methods for creating composite functors.
Constructor Summary | |
---|---|
Composite()
Composite instances should NOT be constructed in
standard programming. |
Method Summary | ||
---|---|---|
static
|
function(BinaryFunction<? super G,? super H,? extends T> f,
BinaryFunction<? super L,? super R,? extends G> g,
BinaryFunction<? super L,? super R,? extends H> h)
Create a composite |
|
static
|
function(BinaryFunction<? super G,? super H,? extends T> f,
UnaryFunction<? super L,? extends G> g,
UnaryFunction<? super R,? extends H> h)
Create a composite |
|
static
|
function(UnaryFunction<? super A,? extends T> f)
Create a composite UnaryFunction. |
|
static
|
function(UnaryFunction<? super X,? extends T> f,
UnaryFunction<? super A,? extends X> g)
Create a composite UnaryFunction. |
|
static
|
predicate(BinaryPredicate<? super G,? super H> p,
UnaryFunction<? super L,? extends G> g,
UnaryFunction<? super R,? extends H> h)
Create a composite BinaryPredicate. |
|
static
|
predicate(UnaryPredicate<? super A> pred)
Create a composite UnaryPredicate. |
|
static
|
predicate(UnaryPredicate<? super T> predicate,
UnaryFunction<? super A,? extends T> function)
Create a composite UnaryPredicate. |
|
static
|
procedure(UnaryProcedure<? super A> procedure)
Create a composite UnaryProcedure. |
|
static
|
procedure(UnaryProcedure<? super T> procedure,
UnaryFunction<? super A,? extends T> function)
Create a composite UnaryProcedure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Composite()
Composite
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 <A> CompositeUnaryProcedure<A> procedure(UnaryProcedure<? super A> procedure)
procedure
- UnaryProcedure to execute against output of f
public static <A,T> CompositeUnaryProcedure<A> procedure(UnaryProcedure<? super T> procedure, UnaryFunction<? super A,? extends T> function)
procedure
- UnaryProcedure to execute against output of f
function
- UnaryFunction to apply
public static <A> CompositeUnaryPredicate<A> predicate(UnaryPredicate<? super A> pred)
pred
- UnaryPredicate to test the output of f
public static <A,T> CompositeUnaryPredicate<A> predicate(UnaryPredicate<? super T> predicate, UnaryFunction<? super A,? extends T> function)
predicate
- UnaryPredicate to test the output of f
function
- UnaryFunction to apply
public static <L,R,G,H> UnaryCompositeBinaryPredicate<L,R> predicate(BinaryPredicate<? super G,? super H> p, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)
p
- BinaryPredicate to test output(f
), output(g
)g
- left UnaryFunctionh
- right UnaryFunction
public static <A,T> CompositeUnaryFunction<A,T> function(UnaryFunction<? super A,? extends T> f)
f
- UnaryFunction to apply to the output of g
public static <A,X,T> CompositeUnaryFunction<A,T> function(UnaryFunction<? super X,? extends T> f, UnaryFunction<? super A,? extends X> g)
f
- UnaryFunction to apply to the output of g
g
- UnaryFunction to apply first
public static <L,R,G,H,T> UnaryCompositeBinaryFunction<L,R,T> function(BinaryFunction<? super G,? super H,? extends T> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)
f
- BinaryFunction to apply to output(f
), output(g
)g
- left UnaryFunctionh
- right UnaryFunction
public static <L,R,G,H,T> BinaryCompositeBinaryFunction<L,R,T> function(BinaryFunction<? super G,? super H,? extends T> f, BinaryFunction<? super L,? super R,? extends G> g, BinaryFunction<? super L,? super R,? extends H> h)
f
- BinaryFunction to apply to output(f
), output(g
)g
- left BinaryFunctionh
- right BinaryFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |