| Access | Constructor and Description |
|---|---|
| public | NullableDataKey(@NotNull String
See name, T getName().default to use when data holder is null defaultValue, @NotNull DataValueFactory<T> data value factory for creating a new default value for the key for a non-null data holder factory)Creates a DataKey with nullable data value and factory with non-nullable dataHolder Use this constructor to ensure that factory is never called with null data holder value |
| public | NullableDataKey(@NotNull String
See name, @NotNull DataValueNullableFactory<T> getName().data value factory for creating a new default value for the key factory)Creates a DataKey with a computed default value dynamically. |
| public | NullableDataKey(@NotNull String
See name, @NotNull Supplier<T> getName().data value factory for creating a new default value for the key not dependent on dataHolder supplier)Creates a DataKey with nullable data value and factory not dependent on data holder Use this constructor to ensure that factory is never called with null data holder value |
| public | NullableDataKey(@NotNull String
See name, @NotNull DataKeyBase<T> getName().The NullableDataKey to take the default value from at time of construction. defaultKey)Creates a NullableDataKey with a dynamic default value taken from a value of another key does not cache the returned default value but will always delegate to another key until this key gets its own value set. |
| public | |
| public | NullableDataKey(@NotNull String
key name name)Create a DataKey with null default value and factory producing null values |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public T | |
| public T | |
| public @NotNull MutableDataHolder | |
| public String | toString()
Overrides com. Returns a string representation of the object. |
| NullableDataKey | back to summary |
|---|---|
| public NullableDataKey(@NotNull String name, T defaultValue, @NotNull DataValueFactory<T> factory) Creates a DataKey with nullable data value and factory with non-nullable dataHolder Use this constructor to ensure that factory is never called with null data holder value
| |
| NullableDataKey | back to summary |
|---|---|
| public NullableDataKey(@NotNull String name, @NotNull DataValueNullableFactory<T> factory) Creates a DataKey with a computed default value dynamically. On construction will invoke factory with null data holder to get the default value
| |
| NullableDataKey | back to summary |
|---|---|
| public NullableDataKey(@NotNull String name, @NotNull Supplier<T> supplier) Creates a DataKey with nullable data value and factory not dependent on data holder Use this constructor to ensure that factory is never called with null data holder value | |
| NullableDataKey | back to summary |
|---|---|
| public NullableDataKey(@NotNull String name, @NotNull DataKeyBase<T> defaultKey) Creates a NullableDataKey with a dynamic default value taken from a value of another key does not cache the returned default value but will always delegate to another key until this key gets its own value set.
| |
| NullableDataKey | back to summary |
|---|---|
| public NullableDataKey(@NotNull String name, T defaultValue) | |
| NullableDataKey | back to summary |
|---|---|
| public NullableDataKey(@NotNull String name) Create a DataKey with null default value and factory producing null values | |
| get | back to summary |
|---|---|
public T get(@Nullable DataHolder holder)
| |
| getDefaultValue | back to summary |
|---|---|
| public T getDefaultValue() Overrides com.
| |
| getDefaultValue | back to summary |
|---|---|
public T getDefaultValue(@NotNull DataHolder holder)
| |
| set | back to summary |
|---|---|
| public @NotNull MutableDataHolder set(@NotNull MutableDataHolder dataHolder, T value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |