Class ValueFunction<T,R>
java.lang.Object
org.wildfly.clustering.marshalling.spi.ValueFunction<T,R>
- All Implemented Interfaces:
DoubleFunction<R>,Function<T,,R> IntFunction<R>,LongFunction<R>
public class ValueFunction<T,R>
extends Object
implements Function<T,R>, IntFunction<R>, LongFunction<R>, DoubleFunction<R>
A function that always results a constant value, ignoring its parameter.
- Author:
- Paul Ferraro
-
Constructor Details
-
ValueFunction
-
-
Method Details
-
voidFunction
Returns a function that always returns a null result, regardless of input.- Type Parameters:
T- the function parameter type- Returns:
- a function that always returns null
-
apply
-
apply
- Specified by:
applyin interfaceDoubleFunction<T>
-
apply
- Specified by:
applyin interfaceLongFunction<T>
-
apply
- Specified by:
applyin interfaceIntFunction<T>
-