public class Functions
extends java.lang.Object
Constructor and Description |
---|
Functions() |
Modifier and Type | Method and Description |
---|---|
static <A,B> Function<A,B> |
cast(java.lang.Class<B> clazz) |
static <A,B,C> Function<A,C> |
compose(Function<? super A,? extends B> f1,
Function<? super B,? extends C> f2) |
static <A,B> Function<A,B> |
constant(B b) |
static <A,B> Function<A,B> |
fromMap(java.util.Map<? super A,? extends B> map) |
static <A> Function.Mono<A> |
id() |
static <A,B> Function<A,B> |
identity() |
static <A> Function<Pair<A,?>,A> |
pairFirst() |
static <B> Function<Pair<?,B>,B> |
pairSecond() |
static <A> Function<A,java.lang.String> |
TO_STRING() |
static <T> Function<T[],java.lang.Iterable<T>> |
wrapArray() |
public static <A> Function.Mono<A> id()
public static <A,B> Function<A,B> constant(B b)
public static <A,B> Function<A,B> identity()
public static <A,B> Function<A,B> cast(java.lang.Class<B> clazz)
public static <A,B,C> Function<A,C> compose(Function<? super A,? extends B> f1, Function<? super B,? extends C> f2)
public static <A> Function<A,java.lang.String> TO_STRING()
public static <A,B> Function<A,B> fromMap(java.util.Map<? super A,? extends B> map)
public static <T> Function<T[],java.lang.Iterable<T>> wrapArray()