| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
alwaysFalse() |
static <T> Predicate<T> |
alwaysTrue() |
static <T> Consumer<T> |
emptyConsumer()
Returns an empty consumer that does nothing.
|
static LongConsumer |
emptyLongConsumer()
Returns an empty long consumer that does nothing.
|
static java.lang.Runnable |
emptyRunnable()
Returns an empty runnable that does nothing.
|
static <T> Function<T,T> |
identity()
Returns an identity function that simply returns its argument.
|
static <T> java.util.Comparator<T> |
naturalOrder()
Returns a natural order comparator which casts the parameters to Comparable.
|
static <T> Supplier<T> |
nullSupplier() |
static <T1,T2,R> Function<java.lang.Object[],R> |
toFunction(BiFunction<? super T1,? super T2,? extends R> biFunction) |
static <T1,T2,T3,R> |
toFunction(Function3<T1,T2,T3,R> f) |
static <T1,T2,T3,T4,R> |
toFunction(Function4<T1,T2,T3,T4,R> f) |
static <T1,T2,T3,T4,T5,R> |
toFunction(Function5<T1,T2,T3,T4,T5,R> f) |
static <T1,T2,T3,T4,T5,T6,R> |
toFunction(Function6<T1,T2,T3,T4,T5,T6,R> f) |
static <T1,T2,T3,T4,T5,T6,T7,R> |
toFunction(Function7<T1,T2,T3,T4,T5,T6,T7,R> f) |
static <T1,T2,T3,T4,T5,T6,T7,T8,R> |
toFunction(Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> f) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,R> |
toFunction(Function9<T1,T2,T3,T4,T5,T6,T7,T8,T9,R> f) |
static Functions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Functions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Functions[] values()
for (Functions c : Functions.values()) System.out.println(c);
public static Functions valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static <T1,T2,R> Function<java.lang.Object[],R> toFunction(BiFunction<? super T1,? super T2,? extends R> biFunction)
public static <T1,T2,T3,R> Function<java.lang.Object[],R> toFunction(Function3<T1,T2,T3,R> f)
public static <T1,T2,T3,T4,R> Function<java.lang.Object[],R> toFunction(Function4<T1,T2,T3,T4,R> f)
public static <T1,T2,T3,T4,T5,R> Function<java.lang.Object[],R> toFunction(Function5<T1,T2,T3,T4,T5,R> f)
public static <T1,T2,T3,T4,T5,T6,R> Function<java.lang.Object[],R> toFunction(Function6<T1,T2,T3,T4,T5,T6,R> f)
public static <T1,T2,T3,T4,T5,T6,T7,R> Function<java.lang.Object[],R> toFunction(Function7<T1,T2,T3,T4,T5,T6,T7,R> f)
public static <T1,T2,T3,T4,T5,T6,T7,T8,R> Function<java.lang.Object[],R> toFunction(Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> f)
public static <T1,T2,T3,T4,T5,T6,T7,T8,T9,R> Function<java.lang.Object[],R> toFunction(Function9<T1,T2,T3,T4,T5,T6,T7,T8,T9,R> f)
public static <T> Function<T,T> identity()
T - the input and output value typepublic static java.lang.Runnable emptyRunnable()
public static <T> Consumer<T> emptyConsumer()
T - the consumed value type, the value is ignoredpublic static LongConsumer emptyLongConsumer()
public static <T> Predicate<T> alwaysTrue()
public static <T> Predicate<T> alwaysFalse()
public static <T> Supplier<T> nullSupplier()
public static <T> java.util.Comparator<T> naturalOrder()
T - the value type