public class DefaultAddOnValueProvider extends java.lang.Object implements AddOnValueProvider
AddOnValueProvider interface.| Constructor and Description |
|---|
DefaultAddOnValueProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.function.Supplier> |
getSuppliers() |
<T> java.util.Optional<T> |
getValue(java.lang.String key,
java.lang.Class<T> type)
Returns an
Optional for the given key that contains the value if present. |
void |
setSuppliers(java.util.Map<java.lang.String,java.util.function.Supplier> suppliers) |
public <T> java.util.Optional<T> getValue(java.lang.String key,
java.lang.Class<T> type)
AddOnValueProviderOptional for the given key that contains the value if present.getValue in interface AddOnValueProviderkey - the key to retrieve the value fortype - the expected type of the valueOptional that either contains the value or is empty if key or type don't matchprotected java.util.Map<java.lang.String,java.util.function.Supplier> getSuppliers()
public void setSuppliers(java.util.Map<java.lang.String,java.util.function.Supplier> suppliers)
Copyright © 2018 SAP SE. All Rights Reserved.