public class AbstractPropertiesHandler.PropertyAccessor<V> extends Object implements Supplier<V>
Modifier and Type | Field and Description |
---|---|
private String |
key |
private Function<V,String> |
stringifier |
private V |
value |
Modifier | Constructor and Description |
---|---|
private |
PropertyAccessor(String key,
V value,
Function<V,String> stringifier) |
Modifier and Type | Method and Description |
---|---|
V |
get() |
T |
set(DynamicRegistryManager dynamicRegistryManager,
V v)
Returns a new property handler with another map of property in which
the property handled by this accessor is updated.
|
public T set(DynamicRegistryManager dynamicRegistryManager, V v)
This method does not mutate the original property where this accessor is from.