| Modifier and Type | Method and Description |
|---|---|
| public @NotNull MutableDataHolder | |
| public default <T> T | Returns: return stored value or newly created valuedata key key)
Deprecated
use key.get(dataHolder) instead, which will do the same thing an carries nullable information for the data
Get the given key, if it does not exist then use the key's factory to create a new value and put it into the collection so that the following get of the same key will find a value |
| public Object | |
| public @NotNull MutableDataHolder | Returns: mutable data holder for chained callsdata key to remove key)Remove the stored value for the key, used to force to default or to force recompute |
| public < data type of the data referred by the key T> @NotNull MutableDataHolder | |
| public < data type of the data referred by the key T> @NotNull MutableDataHolder | Returns: mutable data holder for chained callsdata key key, T value to store value)Store the given value for the key |
| public @NotNull MutableDataHolder | Returns: mutable data holder for chained callsdata holder from which to copy all values other)Copy all values from one data holder to this data holder |
| public @NotNull MutableDataHolder | Returns: mutable data holder for chained callsdata setter which will set values dataSetter)Store the given value for the key |
| public @NotNull MutableDataHolder | Returns: dataHolderdata holder where to copy options from this data holder dataHolder)Set options in given mutable data holder |
| clear | back to summary |
|---|---|
| public @NotNull MutableDataHolder clear() clear all options out of the data set
| |
| get | back to summary |
|---|---|
| public default <T> T get(@NotNull DataKey<T> key)
Deprecated use key.get(dataHolder) instead, which will do the same thing an carries nullable information for the data Get the given key, if it does not exist then use the key's factory to create a new value and put it into the collection so that the following get of the same key will find a value
| |
| getOrCompute | back to summary |
|---|---|
public Object getOrCompute(@NotNull DataKeyBase<?> key, @NotNull DataValueFactory<?> factory)
| |
| remove | back to summary |
|---|---|
| public @NotNull MutableDataHolder remove(@NotNull DataKeyBase<?> key) Remove the stored value for the key, used to force to default or to force recompute
| |
| set | back to summary |
|---|---|
| public <T> @NotNull MutableDataHolder set(@NotNull DataKey<T> key, T value) Store the given value for the key
| |
| set | back to summary |
|---|---|
| public <T> @NotNull MutableDataHolder set(@NotNull NullableDataKey<T> key, T value) Store the given value for the key
| |
| setAll | back to summary |
|---|---|
| public @NotNull MutableDataHolder setAll(@NotNull DataHolder other) Copy all values from one data holder to this data holder
| |
| setFrom | back to summary |
|---|---|
| public @NotNull MutableDataHolder setFrom(@NotNull MutableDataSetter dataSetter) Store the given value for the key
| |
| setIn | back to summary |
|---|---|
| public @NotNull MutableDataHolder setIn(@NotNull MutableDataHolder dataHolder) Set options in given mutable data holder
| |