|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.util.Function
public class Function
Function definitions.
| Nested Class Summary | |
|---|---|
static interface |
Function.F0<R>
A function with no arguments. |
static interface |
Function.F1<R,A>
A function with one argument. |
static interface |
Function.F10<R,A,B,C,D,E,F,G,H,I>
A function with ten arguments. |
static interface |
Function.F11<R,A,B,C,D,E,F,G,H,I,J>
A function with eleven arguments. |
static interface |
Function.F12<R,A,B,C,D,E,F,G,H,I,J,K>
A function with twelve arguments. |
static interface |
Function.F13<R,A,B,C,D,E,F,G,H,I,J,K,L>
A function with thirteen arguments. |
static interface |
Function.F14<R,A,B,C,D,E,F,G,H,I,J,K,L,M>
A function with fourteen arguments. |
static interface |
Function.F15<R,A,B,C,D,E,F,G,H,I,J,K,L,M,N>
A function with fifteen arguments. |
static interface |
Function.F2<R,A,B>
A function with two arguments. |
static interface |
Function.F3<R,A,B,C>
A function with three arguments. |
static interface |
Function.F4<R,A,B,C,D>
A function with four arguments. |
static interface |
Function.F5<R,A,B,C,D,E>
A function with five arguments. |
static interface |
Function.F6<R,A,B,C,D,E,F>
A function with six arguments. |
static interface |
Function.F7<R,A,B,C,D,E,F,G>
A function with seven arguments. |
static interface |
Function.F8<R,A,B,C,D,E,F,G,H>
A function with eight arguments. |
static interface |
Function.F9<R,A,B,C,D,E,F,G,H>
A function with nine arguments. |
| Method Summary | ||
|---|---|---|
static
|
foldl(Function.F2<U,? super T,U> function,
U seed,
Pair<T> list)
Fold the specified list with the specified function. |
|
static
|
iterate(Function.F1<U,? super T> function,
Pair<T> list)
Iterate the specified function over the specified list. |
|
static
|
map(Function.F1<U,? super T> function,
Pair<T> list)
Map the specified function over the specified list. |
|
static
|
matchesAll(Function.F1<java.lang.Boolean,? super T> pred,
Pair<T> list)
Determine whether the specified list contains only elements matching the specified predicate. |
|
static
|
matchesOne(Function.F1<java.lang.Boolean,? super T> pred,
Pair<T> list)
Determine whether the specified list contains an element matching the specified predicate. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T,U> void iterate(Function.F1<U,? super T> function,
Pair<T> list)
function - The function.list - The list.
public static <T,U> Pair<U> map(Function.F1<U,? super T> function,
Pair<T> list)
function - The function.list - The list.
public static <T,U> U foldl(Function.F2<U,? super T,U> function,
U seed,
Pair<T> list)
function - The function.seed - The seed value.list - The list.
public static <T> boolean matchesAll(Function.F1<java.lang.Boolean,? super T> pred,
Pair<T> list)
pred - The predicate.list - The list.
true if the list contains only matching
elements.
public static <T> boolean matchesOne(Function.F1<java.lang.Boolean,? super T> pred,
Pair<T> list)
pred - The predicate.list - The list.
true if the list contains at least one
matching element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||