-
class
A function from A to B with an associated reverse function from B
to A; used for converting back and forth between different representations of the same
information.
Returns the composition of two functions.
Returns a function that ignores its input and always returns value.
Functions.forMap(Map<K,? extends V> map,
V defaultValue)
Returns a function which performs a map lookup with a default value.
Returns a function which performs a map lookup.
Creates a function that returns the same boolean output as the given predicate for all inputs.
Returns a function that ignores its input and returns the result of supplier.get().
Returns the identity function.
Returns a function that accepts a supplier and returns the result of invoking
Supplier#get on that supplier.
A function equivalent to the method reference Object::toString, for users not yet using
Java 8.
Returns the composition of two functions.
Returns the composition of a function and a predicate.
Returns a new supplier which is the composition of the provided function and supplier.
Converter.from(Function<? super A,? extends B> forwardFunction,
Function<? super B,? extends A> backwardFunction)
Returns a converter based on separate forward and backward functions.
Returns a new equivalence relation for F which evaluates equivalence by first applying
function to the argument, then evaluating using this.
If the instance is present, it is transformed with the given Function; otherwise,
Optional#absent is returned.