T - the properties typepublic class PropertiesConfigAdapter<T>
extends java.lang.Object
| Constructor and Description |
|---|
PropertiesConfigAdapter(T properties)
Create a new
PropertiesConfigAdapter instance. |
| Modifier and Type | Method and Description |
|---|---|
protected <V> V |
get(java.util.function.Function<T,V> getter,
java.util.function.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(java.util.function.Function<T,V> getter, java.util.function.Supplier<V> fallback)
defaults.V - the value typegetter - the getter for the propertiesfallback - the fallback method, usually super interface method reference