public abstract class DefaultReturnValue<V> extends Object implements InstanceReturnValue<V>
| Constructor and Description |
|---|
DefaultReturnValue() |
| Modifier and Type | Method and Description |
|---|---|
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 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.