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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
accept, andThenMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<Object,O, O>
-
getOperand
Description copied from interface:OperationReturns the operand of the operation.- Specified by:
getOperandin interfaceOperation<T>- Returns:
- the operand of the operation.
-
hashCode
public int hashCode() -
equals
-
toString
-