| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <A> UnaryPredicate | and(final UnaryPredicate<A> arg1, final UnaryPredicate<A> arg2)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static List | |
| public static String | convertToString(Object
Object to convert. arg)Convert argument to String, either by toString, ot Arrays.toString. |
| public static <T> T | |
| public static <T> UnaryPredicate | FALSE(Class<T> cls)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <A> void | filter(final List<A> arg, final List<A> result, final UnaryPredicate<A> predicate)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <A> List | filter(List<A> arg, UnaryPredicate<A> predicate)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <A> A | find(List<A> arg, UnaryPredicate<A> predicate)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static < Type of elements of list. S, Type of elements of result. T> List | Returns: List<T> containing results of applying map to each element of list.List of elements of type S. list, final UnaryFunction<S, List<T>> function mapping S to map)List<T>.
References Deprecated
UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
Flatten the results of applying map to list into a list of T. |
| public static <A, R> R | fold(List<A> list, R initial, BinaryFunction<R, A, R> func)
References Deprecated
BinaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static < The type of the list element. T> T | Returns: The first element of the list, if any.The list list, Runnable A runnable to call when the list is empty. Typically
throws an exception. handleEmptyList)Return the first element of the list, or invoke handleEmptyList if list is empty. |
| private static <T> PrivilegedAction | |
| public static <K, V> Map | |
| public static <A, R> void | map(final Collection<A> arg, final Collection<R> result, final UnaryFunction<A, R> func)
References Deprecated
UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <K, A, R> Map | map(final Map<K, A> arg, final UnaryFunction<A, R> func)
References Deprecated
UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <A, R> List | map(final List<A> arg, final UnaryFunction<A, R> func)
References Deprecated
UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <A, R> UnaryFunction | mapToFunction(final Map<A, R> map)
References Deprecated
UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <A> UnaryPredicate | not(final UnaryPredicate<A> arg1)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <A> UnaryPredicate | or(final UnaryPredicate<A> arg1, final UnaryPredicate<A> arg2)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <S, T> Pair | |
| public static <T> UnaryPredicate | TRUE(Class<T> cls)
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Algorithms | back to summary |
|---|---|
| private Algorithms() | |
| and | back to summary |
|---|---|
| public static <A> UnaryPredicate References Deprecated
See corresponding docs for further information. | |
| convertToList | back to summary |
|---|---|
| public static List Converts obj from an Array to a List, if obj is an array. Otherwise just returns a List containing obj.
| |
| convertToString | back to summary |
|---|---|
| public static String convertToString(Object arg) Convert argument to String, either by toString, ot Arrays.toString.
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(Algorithms. | |
| FALSE | back to summary |
|---|---|
| public static <T> UnaryPredicate References Deprecated
See corresponding docs for further information. | |
| filter | back to summary |
|---|---|
| public static <A> void filter(final List<A> arg, final List<A> result, final UnaryPredicate<A> predicate)
References Deprecated
See corresponding docs for further information. | |
| filter | back to summary |
|---|---|
| public static <A> List References Deprecated
See corresponding docs for further information. | |
| find | back to summary |
|---|---|
| public static <A> A find(List<A> arg, UnaryPredicate<A> predicate)
References Deprecated
See corresponding docs for further information. | |
| flatten | back to summary |
|---|---|
| public static <S, T> List References Deprecated
See corresponding docs for further information. Flatten the results of applying map to list into a list of T.
| |
| fold | back to summary |
|---|---|
| public static <A, R> R fold(List<A> list, R initial, BinaryFunction<R, A, R> func)
References Deprecated
See corresponding docs for further information. | |
| getFirst | back to summary |
|---|---|
| public static <T> T getFirst(Collection<T> list, Runnable handleEmptyList) Return the first element of the list, or invoke handleEmptyList if list is empty.
| |
| makePrivilegedAction | back to summary |
|---|---|
| private static <T> PrivilegedAction | |
| map | back to summary |
|---|---|
| public static <K, V> Map | |
| map | back to summary |
|---|---|
| public static <A, R> void map(final Collection<A> arg, final Collection<R> result, final UnaryFunction<A, R> func)
References Deprecated
See corresponding docs for further information. | |
| map | back to summary |
|---|---|
| public static <K, A, R> Map References Deprecated
See corresponding docs for further information. | |
| map | back to summary |
|---|---|
| public static <A, R> List References Deprecated
See corresponding docs for further information. | |
| mapToFunction | back to summary |
|---|---|
| public static <A, R> UnaryFunction References Deprecated
See corresponding docs for further information. | |
| not | back to summary |
|---|---|
| public static <A> UnaryPredicate References Deprecated
See corresponding docs for further information. | |
| or | back to summary |
|---|---|
| public static <A> UnaryPredicate References Deprecated
See corresponding docs for further information. | |
| pair | back to summary |
|---|---|
| public static <S, T> Pair | |
| TRUE | back to summary |
|---|---|
| public static <T> UnaryPredicate References Deprecated
See corresponding docs for further information. | |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| run | back to summary |
|---|---|
| public T run() throws Exception | |