All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
static <E> Function<E[],List<E>> |
arrayToList()
Returns a function that converts a given array into a list.
|
static <T,R> Function<T,R> |
call(MethodQuery methodQuery)
Returns a Function created from a method specified by a methodQuery .
|
static <T,R> Function<T,R> |
call(String methodName,
Object... arguments)
Returns a function that calls a method which matches the given methodName
and args on the object given as input to it.
|
static <E> Function<? super Object,E> |
cast(Class<E> type)
Returns a function that casts an object into a given class.
|
static <E> Function<? super Object,E> |
castTo(E value)
Returns a function that casts an object into a given class.
|
static MethodQuery |
classMethod(Class<?> targetClass,
String methodName,
Object... arguments)
Creates a MethodQuery object from given arguments to search for static methods.
|
static <I extends Collection<E>,E> Function<I,List<E>> |
collectionToList()
Returns a function that creates and returns a list that contains all the elements in the given list.
|
static Function<String,Integer> |
countLines()
Returns a function the counts lines in a given string.
|
static CurriedFunction<Object,Object> |
curry(Class<?> aClass,
String methodName,
Class<?>... parameterTypes)
Curries a static method specified by the given arguments.
|
static CurriedFunction<Object,Object> |
curry(MultiFunction<Object> function)
Curries a given multi-function.
|
static <E> Function<List<E>,E> |
elementAt(int i) |
static <T,E extends Throwable> Function<T,E> |
expectingException(Class<E> exceptionClass,
Function<? super T,?> func)
Returns a function that converts an input value to an exception object, which is thrown by func , when it is applied.
|
static Function<String,String> |
findString(String substring)
The returned function tries to find a substring after a given string.
|
static <E> Function<E,E> |
identity()
Returns a printable function that returns a given object itself.
|
static MethodQuery |
instanceMethod(Object targetObject,
String methodName,
Object... arguments)
Creates a MethodQuery object from given arguments to search for static methods.
|
static Function<? super String,Integer> |
length()
Returns a function that gives a length of a string passed as an argument.
|
static <R> MultiFunction<R> |
multifunction(Class<?> aClass,
String methodName,
Class<?>... parameterTypes) |
static Parameter |
parameter()
|
static <E> Function<Collection<E>,Integer> |
size()
Returns a function that that returns a size of a given list.
|
static <E> Function<Collection<? extends E>,Stream<E>> |
stream()
Returns a function that returns a stream for a given collection.
|
static <E> Function<Collection<? extends E>,Stream<E>> |
stream(Class<E> elementClass)
Returns a function that returns a stream for a given collection.
|
static <E> Function<E,Stream<E>> |
streamOf()
Returns a function that returns a stream for a given object.
|
static <E> Function<E,String> |
stringify()
Returns a function that gives a string representation of a object given to it.
|
static <E> E |
value()
A method to return a value for a "casting placeholder value".
|