public abstract class UsingReturnValue<V> extends Object implements UsableReturnValue<V>
USING_RETURN_VALUE_UNINIT| Constructor and Description |
|---|
UsingReturnValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
initUsingReturnValue(V usingReturnValue) |
V |
returnValue() |
void |
returnValue(Data<V> value)
Calling this method on a
ReturnValue object, provided as an argument in a method from
MapMethods, designates that the ChronicleMap's method (backed by this
MapMethods's method) should return the given value. |
public void initUsingReturnValue(V usingReturnValue)
initUsingReturnValue in interface UsableReturnValue<V>public void returnValue(@NotNull
Data<V> value)
ReturnValueReturnValue object, provided as an argument in a method from
MapMethods, designates that the ChronicleMap's method (backed by this
MapMethods's method) should return the given value.
It is not allowed to call returnValue() twice during a single MapMethods's
method call.
Not calling returnValue() during MapMethods's method call will make the
backed ChronicleMap's method to return null.
returnValue in interface ReturnValue<V>value - a Data object wrapping a value, which should be returned from a
ChronicleMap's method, backed by the MapMethods's method, to
which this ReturnValue instance was passed as an argumentpublic V returnValue()
returnValue in interface InstanceReturnValue<V>Copyright © 2024. All rights reserved.