V
- the type of values in the ChronicleMap
public interface ReturnValue<V>
ChronicleMap
, used in MapMethods
.
This interface is not supposed to be implemented in user code.Modifier and Type | Method and Description |
---|---|
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 . |
void returnValue(@NotNull Data<V> value)
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
.
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
.
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 argumentCopyright © 2023. All rights reserved.