| Modifier and Type | Interface and Description |
|---|---|
interface |
DataNotNullValueFactory<T> |
interface |
DataNotNullValueNullableFactory<T> |
interface |
DataValueNullableFactory<T> |
| Modifier and Type | Method and Description |
|---|---|
@NotNull DataValueFactory<T> |
DataKeyBase.getFactory() |
| Modifier and Type | Method and Description |
|---|---|
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) |
| Constructor and Description |
|---|
DataKeyBase(@NotNull String name,
T defaultValue,
@NotNull DataValueFactory<T> factory)
Creates a NullableDataKey with a computed default value and a provided default value when data holder is null.
|
NullableDataKey(@NotNull String name,
T defaultValue,
@NotNull DataValueFactory<T> factory)
Creates a DataKey with nullable data value and factory with non-nullable dataHolder
|
Copyright © 2020. All rights reserved.