public final class functions extends StaticObject
| Modifier and Type | Field and Description |
|---|---|
static Function<Double,Float64> |
DoubleToFloat64
|
static Function<Float64,Double> |
Float64ToDouble
|
static Function<Integer64,Long> |
Integer64ToLong
|
static Function<Long,Integer64> |
LongToInteger64
Convert a {link Long} value to a
Integer64 value. |
static Function<Object,Boolean> |
Null
A predicate which return
true if an given value is null. |
static Function<Object,String> |
ObjectToString
Convert an object to a string by calling the objects
Object.toString()
method. |
static Function<String,Integer> |
StringLength
Convert a string value to its length.
|
static Function<String,Double> |
StringToDouble
Convert a string to a double.
|
static Function<String,Float> |
StringToFloat
Convert a string to a float.
|
static Function<String,Float64> |
StringToFloat64
Convert a string to a Float64.
|
static Function<String,Integer> |
StringToInteger
Convert a string to an integer.
|
static Function<String,Integer64> |
StringToInteger64
Convert a string to an Integer64.
|
static Function<String,Long> |
StringToLong
Convert a string to a long.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Function<T,Boolean> |
and(Function<? super T,Boolean> a,
Function<? super T,Boolean> b)
Return a
and combination of the given predicates. |
static <A,B,C> Function<A,C> |
compose(Function<A,B> f1,
Function<B,C> f2) |
static <A,B,C,D> Function<A,D> |
compose(Function<A,B> f1,
Function<B,C> f2,
Function<C,D> f3) |
static <A,B,C,D,E> |
compose(Function<A,B> f1,
Function<B,C> f2,
Function<C,D> f3,
Function<D,E> f4) |
static <A,B,C,D,E,F> |
compose(Function<A,B> f1,
Function<B,C> f2,
Function<C,D> f3,
Function<D,E> f4,
Function<E,F> f5) |
static <T> Function<T,T> |
Identity()
Return the identity function for the given type.
|
static <T> Function<T,Boolean> |
not(Function<? super T,Boolean> a)
Return a predicate which negates the return value of the given predicate.
|
static <T> Function<T,Boolean> |
or(Function<? super T,Boolean> a,
Function<? super T,Boolean> b)
Return a
or combination of the given predicates. |
public static final Function<Object,String> ObjectToString
Object.toString()
method.public static final Function<String,Integer> StringLength
public static final Function<String,Integer> StringToInteger
NumberFormatException is throws by the Function.apply(Object)
method.public static final Function<String,Long> StringToLong
NumberFormatException is throws by the Function.apply(Object)
method.public static final Function<String,Integer64> StringToInteger64
NumberFormatException is throws by the Function.apply(Object)
method.public static final Function<String,Float> StringToFloat
NumberFormatException is throws by the Function.apply(Object)
method.public static final Function<String,Double> StringToDouble
NumberFormatException is throws by the Function.apply(Object)
method.public static final Function<String,Float64> StringToFloat64
NumberFormatException is throws by the Function.apply(Object)
method.public static final Function<Float64,Double> Float64ToDouble
public static final Function<Double,Float64> DoubleToFloat64
public static final Function<Integer64,Long> Integer64ToLong
public static final Function<Long,Integer64> LongToInteger64
Integer64 value.public static <T> Function<T,Boolean> not(Function<? super T,Boolean> a)
T - the value type to check.a - the predicate to negate.NullPointerException - if the given predicate is null.public static <T> Function<T,Boolean> and(Function<? super T,Boolean> a, Function<? super T,Boolean> b)
and combination of the given predicates.T - the value type to check.a - the first predicateb - the second predicateand combination of the given predicates.NullPointerException - if one of the given predicates is
null.public static <T> Function<T,Boolean> or(Function<? super T,Boolean> a, Function<? super T,Boolean> b)
or combination of the given predicates.T - the value type to check.a - the first predicateb - the second predicateand combination of the given predicates.NullPointerException - if one of the given predicates is
null.public static <T> Function<T,T> Identity()
public static <A,B,C,D> Function<A,D> compose(Function<A,B> f1, Function<B,C> f2, Function<C,D> f3)
public static <A,B,C,D,E> Function<A,E> compose(Function<A,B> f1, Function<B,C> f2, Function<C,D> f3, Function<D,E> f4)
© 2007-2013 Franz Wilhelmstötter (2013-12-18 20:17)