| java.lang.Object org.cougaar.util.Collectors
Collectors | final public class Collectors (Code) | | Collectors is a class of static methods for applying a Thunk
to various sorts of collection-like data structures.
|
Method Summary | |
public static void | apply(Thunk t, Collection c) apply the Thunk to each element of the collection. | public static void | apply(Thunk t, List l) apply the Thunk to each element of the list. | public static void | apply(Thunk t, Iterator i) apply the Thunk to each element from an Iterator. | public static void | apply(Thunk t, Object[] a) | public static void | apply(Thunk t, Object[] a, int length) apply the Thunk to each element of the Array. | public static void | apply(Thunk t, Object[] a, int start, int length) apply the Thunk to each element of the Array
t will be applied to the length elements starting at position start. |
apply | public static void apply(Thunk t, Collection c)(Code) | | apply the Thunk to each element of the collection. *
|
apply | public static void apply(Thunk t, List l)(Code) | | apply the Thunk to each element of the list. *
|
apply | public static void apply(Thunk t, Iterator i)(Code) | | apply the Thunk to each element from an Iterator. *
|
apply | public static void apply(Thunk t, Object[] a)(Code) | | apply the Thunk to each element of the Array *
|
apply | public static void apply(Thunk t, Object[] a, int length)(Code) | | apply the Thunk to each element of the Array.
Thunk will be applied to the first length elements.
|
apply | public static void apply(Thunk t, Object[] a, int start, int length)(Code) | | apply the Thunk to each element of the Array
t will be applied to the length elements starting at position start.
|
|
|