|
|
||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Function in uk.co.jezuk.mango |
|---|
| Methods in uk.co.jezuk.mango that return Function | ||
|---|---|---|
static Function |
Adapt.ArgumentMethod(java.lang.String methodName)
Creates a Function which will call a method on the
object passed as the argument to Function.fn method. |
|
static
|
Adapt.ArgumentMethod(java.lang.String methodName,
java.lang.Class<T> argType)
|
|
static
|
Adapt.ArgumentMethod(java.lang.String methodName,
java.lang.Class<T> argType,
java.lang.Class<R> returnType)
|
|
static
|
Functions.Compose(Function<T2,R> f,
Function<T,T2> g)
Compose is a unary function adaptor. |
|
static
|
Functions.Constant(R value)
Returns the initial value, regardless of the argument passed to the function |
|
static
|
Bind.First(BinaryFunction<T1,T2,R> f,
T1 c)
Adapts a BinaryFunction into a Function. |
|
static
|
Functions.Identity()
The identity function. |
|
static Function |
Adapt.Method(java.lang.Class klass,
java.lang.String methodName)
Adapts static member functions as Function objects, allowing them
to be passed to algorithms. |
|
static
|
Adapt.Method(java.lang.Class klass,
java.lang.String methodName,
java.lang.Class<T> argType)
|
|
static
|
Adapt.Method(java.lang.Class klass,
java.lang.String methodName,
java.lang.Class<T> argType,
java.lang.Class<R> returnType)
|
|
static Function |
Adapt.Method(java.lang.Object obj,
java.lang.String methodName)
Adapts member functions as Function objects, allowing them
to be passed to algorithms. |
|
static
|
Adapt.Method(java.lang.Object obj,
java.lang.String methodName,
java.lang.Class<T> argType)
|
|
static
|
Adapt.Method(java.lang.Object obj,
java.lang.String methodName,
java.lang.Class<T> argType,
java.lang.Class<R> returnType)
|
|
static
|
Bind.Second(BinaryFunction<T1,T2,R> f,
T2 c)
Adapts a BinaryFunction into a Function. |
|
| Methods in uk.co.jezuk.mango with parameters of type Function | ||
|---|---|---|
static
|
BinaryFunctions.Compose(BinaryFunction<R1,R2,R> f,
Function<T1,R1> g1,
Function<T2,R2> g2)
Compose is a function adaptor. |
|
static
|
BinaryFunctions.Compose(BinaryFunction<R1,R2,R> f,
Function<T1,R1> g1,
Function<T2,R2> g2)
Compose is a function adaptor. |
|
static
|
Functions.Compose(Function<T2,R> f,
Function<T,T2> g)
Compose is a unary function adaptor. |
|
static
|
Functions.Compose(Function<T2,R> f,
Function<T,T2> g)
Compose is a unary function adaptor. |
|
static
|
Algorithms.forEach(java.util.Collection<T> collection,
Function<? super T,R> fn)
The algorithm ForEach applies the function fn to
each element in the iterator sequence. |
|
static
|
Algorithms.forEach(java.util.Collection<T> collection,
int start,
int end,
Function<? super T,R> fn)
|
|
static
|
Algorithms.forEach(java.util.Iterator<T> iterator,
Function<? super T,R> fn)
|
|
static
|
Algorithms.forEach(java.util.List<T> list,
int start,
int end,
Function<? super T,R> fn)
|
|
static
|
Algorithms.transform(java.util.Collection<T> collection,
Function<? super T,R> fn)
The algorithm Transform applies the function fn to
each element in the iterator sequence. |
|
static
|
Algorithms.transform(java.util.Collection<T> collection,
Function<? super T,R> fn,
C results)
|
|
static
|
Algorithms.transform(java.util.Collection<T> collection,
int start,
int end,
Function<? super T,R> fn)
|
|
static
|
Algorithms.transform(java.util.Collection<T> collection,
int start,
int end,
Function<? super T,R> fn,
C results)
|
|
static
|
Algorithms.transform(java.util.Iterator<T> iterator,
Function<? super T,R> fn)
|
|
static
|
Algorithms.transform(java.util.Iterator<T> iterator,
Function<? super T,R> fn,
C results)
|
|
static
|
Algorithms.transform(java.util.List<T> collection,
int start,
int end,
Function<? super T,R> fn)
|
|
static
|
Algorithms.transform(java.util.List<T> list,
int start,
int end,
Function<? super T,R> fn,
C results)
|
|
static
|
Iterators.TransformIterator(java.util.Iterator<T> iterator,
Function<? super T,R> transform)
A TransfromIterator applies a to
each element in the sequence, returning the the function result at each step. |
|
|
|
||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||