Class Swap
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.from_long.Swap
- All Implemented Interfaces:
java.util.function.LongFunction<java.lang.Object>
public class Swap
extends java.lang.Object
implements java.util.function.LongFunction<java.lang.Object>
Load a named value from the per-thread state map.
The previous input value will be stored in the named value, and the previously
stored value will be returned. A default value to return may be provided
in case there was no previously stored value under the given name.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.lang.Objectapply(long value)
-
Constructor Details
-
Method Details
-
apply
public java.lang.Object apply(long value)- Specified by:
applyin interfacejava.util.function.LongFunction<java.lang.Object>
-