Class AbstractFunction<T,O>
java.lang.Object
org.wildfly.clustering.cache.function.AbstractFunction<T,O>
- Type Parameters:
T- the operand typeO- the operable object type
- All Implemented Interfaces:
BiConsumer<O,T>, BiFunction<Object, O, O>, Operation<T>
- Direct Known Subclasses:
CollectionFunction, MapFunction
public abstract class AbstractFunction<T,O>
extends Object
implements BiFunction<Object,O,O>, BiConsumer<O,T>, Operation<T>
Function that operates on an operable object.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractFunction(T operand, UnaryOperator<O> copier, Supplier<O> factory, Predicate<O> empty) Constructs a function. -
Method Summary
Methods inherited from interface BiConsumer
accept, andThenMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
AbstractFunction
-
-
Method Details
-
apply
-
getOperand
Description copied from interface:OperationReturns the operand of the operation.- Specified by:
getOperandin interfaceOperation<T>- Returns:
- the operand of the operation.
-
hashCode
-
equals
-
toString
-