Function
.@Deprecated
public abstract class AbstractFunction<T,R>
extends java.lang.Object
Constructor and Description |
---|
AbstractFunction()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<V> AbstractFunction<T,V> |
andThen(AbstractFunction<? super R,? extends V> after)
Deprecated.
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
abstract R |
apply(T t)
Deprecated.
Applies this function to the given argument.
|
<V> AbstractFunction<V,R> |
compose(AbstractFunction<? super V,? extends T> before)
Deprecated.
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
public abstract R apply(T t)
t
- the function argumentpublic <V> AbstractFunction<V,R> compose(AbstractFunction<? super V,? extends T> before)
before
function to its input, and then applies this function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.V
- the type of input to the before
function, and to the
composed functionbefore
- the function to apply before this function is appliedbefore
function and then applies this functionjava.lang.NullPointerException
- if before is nullandThen(AbstractFunction)
public <V> AbstractFunction<T,V> andThen(AbstractFunction<? super R,? extends V> after)
after
function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.V
- the type of output of the after
function, and of the
composed functionafter
- the function to apply after this function is appliedafter
functionjava.lang.NullPointerException
- if after is nullcompose(AbstractFunction)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.