Function2 instances.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Function2 |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T, V, P> Function2 | |
| public static Function2 | |
| public static <T> Function2 | |
| public static <T, V extends Comparable | |
| public static <T> Function2 | |
| public static <T, V extends Comparable | |
| public static <T, V, P> Function2 | throwing(ThrowingFunction2<T, P, V> throwingFunction2)
Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Function2 that will throw a RuntimeException, wrapping the checked exception that is the cause. |
| public static <T1, T2, V> Function2 | throwing(ThrowingFunction2<T1, T2, V> throwingFunction2, Function3<T1, T2, ? super Throwable, ? extends RuntimeException> rethrow)
Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Function2 that will throw a user specified RuntimeException based on the provided function. |
| INTEGER_ADDITION | back to summary |
|---|---|
| private static final Function2<Integer, Integer, Integer> INTEGER_ADDITION | |
| Functions2 | back to summary |
|---|---|
| private Functions2() | |
| fromFunction | back to summary |
|---|---|
| public static <T, V, P> Function2 | |
| integerAddition | back to summary |
|---|---|
| public static Function2 | |
| max | back to summary |
|---|---|
| public static <T> Function2 | |
| maxBy | back to summary |
|---|---|
| public static <T, V extends Comparable | |
| min | back to summary |
|---|---|
| public static <T> Function2 | |
| minBy | back to summary |
|---|---|
| public static <T, V extends Comparable | |
| throwing | back to summary |
|---|---|
| public static <T, V, P> Function2 Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Function2 that will throw a RuntimeException, wrapping the checked exception that is the cause. | |
| throwing | back to summary |
|---|---|
| public static <T1, T2, V> Function2 Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Function2 that will throw a user specified RuntimeException based on the provided function. The function is passed the current element and the checked exception that was thrown as context arguments. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public V |
| function | back to summary |
|---|---|
| private final Function<? super T, ? extends V> function | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| FunctionAdapter | back to summary |
|---|---|
| private FunctionAdapter(Function<? super T, ? extends V> function) | |
| value | back to summary |
|---|---|
| public V value(T each, P parameter) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Integer | value(Integer aggregate, Integer value)
Implements org.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| IntegerAddition | back to summary |
|---|---|
| private IntegerAddition() | |
| value | back to summary |
|---|---|
| public Integer value(Integer aggregate, Integer value) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public T | value(T argument1, T argument2)
Implements org.
|
| function | back to summary |
|---|---|
| private final Function<? super T, ? extends V> function | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MaxByFunction2 | back to summary |
|---|---|
| private MaxByFunction2(Function<? super T, ? extends V> function) | |
| value | back to summary |
|---|---|
| public T value(T argument1, T argument2) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public T | value(T argument1, T argument2)
Implements org.
|
| comparator | back to summary |
|---|---|
| private final Comparator<? super T> comparator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MaxFunction2 | back to summary |
|---|---|
| private MaxFunction2(Comparator<? super T> comparator) | |
| value | back to summary |
|---|---|
| public T value(T argument1, T argument2) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public T | value(T argument1, T argument2)
Implements org.
|
| function | back to summary |
|---|---|
| private final Function<? super T, ? extends V> function | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MinByFunction2 | back to summary |
|---|---|
| private MinByFunction2(Function<? super T, ? extends V> function) | |
| value | back to summary |
|---|---|
| public T value(T argument1, T argument2) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public T | value(T argument1, T argument2)
Implements org.
|
| comparator | back to summary |
|---|---|
| private final Comparator<? super T> comparator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MinFunction2 | back to summary |
|---|---|
| private MinFunction2(Comparator<? super T> comparator) | |
| value | back to summary |
|---|---|
| public T value(T argument1, T argument2) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final ThrowingFunction2 |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public V | safeValue(T argument1, P argument2)
Implements org.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| throwingFunction2 | back to summary |
|---|---|
| private final ThrowingFunction2<T, P, V> throwingFunction2 | |
| ThrowingFunction2Adapter | back to summary |
|---|---|
| private ThrowingFunction2Adapter(ThrowingFunction2<T, P, V> throwingFunction2) | |
| safeValue | back to summary |
|---|---|
| public V safeValue(T argument1, P argument2) throws Exception Implements org.
| |