T - the properties typepublic class PropertiesConfigAdapter<T> extends Object
| Constructor and Description |
|---|
PropertiesConfigAdapter(T properties)
Create a new
PropertiesConfigAdapter instance. |
| Modifier and Type | Method and Description |
|---|---|
protected <V> V |
get(Function<T,V> getter,
Supplier<V> fallback)
Get the value from the properties or use a fallback from the
defaults. |
public PropertiesConfigAdapter(T properties)
PropertiesConfigAdapter instance.properties - the source propertiesprotected final <V> V get(Function<T,V> getter, Supplier<V> fallback)
defaults.V - the value typegetter - the getter for the propertiesfallback - the fallback method, usually super interface method referenceCopyright © 2019 Pivotal Software, Inc.. All rights reserved.