| Modifier and Type | Class and Description |
|---|---|
class |
DataKey<T>
NOTE: Constructors have changed in a breaking way from 0.50.x and prior implementations
|
class |
NullableDataKey<T> |
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<DataKeyBase<?>,Object> |
DataSet.dataSet |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ScopedDataSet.contains(@NotNull DataKeyBase<?> key) |
boolean |
DataHolder.contains(@NotNull DataKeyBase<?> key) |
boolean |
MutableScopedDataSet.contains(@NotNull DataKeyBase<?> key) |
boolean |
DataSet.contains(@NotNull DataKeyBase<?> key) |
Object |
MutableDataHolder.getOrCompute(@NotNull DataKeyBase<?> key,
@NotNull DataValueFactory<?> factory) |
@Nullable Object |
MutableDataSet.getOrCompute(@NotNull DataKeyBase<?> key,
@NotNull DataValueFactory<?> factory) |
@Nullable Object |
ScopedDataSet.getOrCompute(@NotNull DataKeyBase<?> key,
@NotNull DataValueFactory<?> factory) |
Object |
DataHolder.getOrCompute(@NotNull DataKeyBase<?> key,
@NotNull DataValueFactory<?> factory)
Get key if it exists or compute using supplier
|
@Nullable Object |
MutableScopedDataSet.getOrCompute(@NotNull DataKeyBase<?> key,
@NotNull DataValueFactory<?> factory) |
@Nullable Object |
DataSet.getOrCompute(@NotNull DataKeyBase<?> key,
@NotNull DataValueFactory<?> factory) |
@NotNull MutableDataHolder |
MutableDataHolder.remove(@NotNull DataKeyBase<?> key)
Remove the stored value for the key, used to force to default or to force recompute
|
@NotNull MutableDataSet |
MutableDataSet.remove(@NotNull DataKeyBase<?> key) |
| Constructor and Description |
|---|
DataKeyBase(@NotNull String name,
@NotNull DataKeyBase<T> defaultKey)
Creates a NullableDataKey with a dynamic default value taken from a value of another key
|
NullableDataKey(@NotNull String name,
@NotNull DataKeyBase<T> defaultKey)
Creates a NullableDataKey with a dynamic default value taken from a value of another key
|
Copyright © 2020. All rights reserved.