public interface InvertibleFunction<F,T> extends Function<F,T>
A function for which an inverse is available.
| Modifier and Type | Method and Description |
|---|---|
F |
unapply(T input)
Returns the result of applying the inverse of this function to
input. |
F unapply(T input)
Returns the result of applying the inverse of this function to input.
The following should generally hold:
F object = value;
T result = function.apply(object);
F inverse = function.unapply(result);
assert inverse.equals(object);
input - The input value.