public interface Visitable<E>
| Modifier and Type | Method and Description |
|---|---|
default <T,R> R |
applyTo(net.openhft.chronicle.core.util.SerializableBiFunction<E,T,R> function,
T argument)
Apply a function which takes an argument.
|
default <R> R |
applyTo(net.openhft.chronicle.core.util.SerializableFunction<E,R> function)
Apply a function to the visitable and return the result.
|
default <T> void |
asyncUpdate(net.openhft.chronicle.core.util.SerializableBiFunction<E,T,E> updateFunction,
T argument)
Apply a function to visitable potentially asynchronously.
|
default void |
asyncUpdate(net.openhft.chronicle.core.util.SerializableFunction<E,E> updateFunction)
Apply a function to visitable potentially asynchronously.
|
E |
get() |
void |
set(E e) |
default <UT,RT,R> R |
syncUpdate(net.openhft.chronicle.core.util.SerializableBiFunction<E,UT,E> updateFunction,
UT updateArgument,
net.openhft.chronicle.core.util.SerializableBiFunction<E,RT,R> returnFunction,
RT returnArgument)
Apply a function to update the state of a visible, and apply a function to return a result object synchronously.
|
default <R> R |
syncUpdate(net.openhft.chronicle.core.util.SerializableFunction<E,E> updateFunction,
net.openhft.chronicle.core.util.SerializableFunction<E,R> returnFunction)
Apply a function to update the state of a visible, and apply a function to return a result object synchronously.
|
E get()
void set(E e)
e - replace the current state of the visitable Assetdefault <R> R applyTo(@NotNull
net.openhft.chronicle.core.util.SerializableFunction<E,R> function)
R - data type to return.function - to apply e.g. call a getterdefault void asyncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableFunction<E,E> updateFunction)
updateFunction - to update the state of the visitiable.default <R> R syncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableFunction<E,E> updateFunction,
@NotNull
net.openhft.chronicle.core.util.SerializableFunction<E,R> returnFunction)
R - data type to return.updateFunction - update to apply to the value.returnFunction - derive an object to returndefault <T,R> R applyTo(@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<E,T,R> function,
T argument)
T - type of the argumentR - type of the return value.function - to applyargument - for the functions use.default <T> void asyncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<E,T,E> updateFunction,
T argument)
T - type of the argumentupdateFunction - to update the state of the visitiable.argument - for the functions use.default <UT,RT,R> R syncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<E,UT,E> updateFunction,
@Nullable
UT updateArgument,
@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<E,RT,R> returnFunction,
@Nullable
RT returnArgument)
R - data type to return.updateFunction - update to apply to the value.updateArgument - for the update function to use.returnFunction - derive an object to returnreturnArgument - for the return value function to useCopyright © 2015. All rights reserved.