Class RemappingFunction<V extends Remappable<V,O>, O>
java.lang.Object
org.wildfly.clustering.cache.function.RemappingFunction<V,O>
- Type Parameters:
V- the cache value typeO- the operand type
- All Implemented Interfaces:
BiFunction<Object,V, V>, Operation<O>
- Direct Known Subclasses:
SessionAccessMetaDataEntryFunction, SessionCreationMetaDataEntryFunction, SessionMetaDataEntryFunction
public class RemappingFunction<V extends Remappable<V,O>, O>
extends Object
implements BiFunction<Object,V,V>, Operation<O>
Generic function for use with
Map.compute(Object, BiFunction) operations using Remappable values.- Author:
- Paul Ferraro
-
Constructor Details
-
RemappingFunction
Creates a new remapping function.- Parameters:
operand- the operation operand.
-
-
Method Details
-
getOperand
Description copied from interface:OperationReturns the operand of the operation.- Specified by:
getOperandin interfaceOperation<V extends Remappable<V,O>> - Returns:
- the operand of the operation.
-
apply
- Specified by:
applyin interfaceBiFunction<Object, V extends Remappable<V,O>, V extends Remappable<V, O>>
-