Class TigerTypedConfigurationKey<T>
- java.lang.Object
-
- de.gematik.test.tiger.common.config.TigerTypedConfigurationKey<T>
-
- Type Parameters:
T-
public class TigerTypedConfigurationKey<T> extends Object
Ease-of-use solution to retrieve configuration values from the TigerGlobalConfiguration. This object bundles key, type and default value, allowing to centralize all the information associated with a configuration key.
-
-
Constructor Summary
Constructors Constructor Description TigerTypedConfigurationKey(TigerConfigurationKey key, Class<T> type)TigerTypedConfigurationKey(TigerConfigurationKey key, Class<T> type, T defaultValue)TigerTypedConfigurationKey(String key, Class<T> type)TigerTypedConfigurationKey(String key, Class<T> type, T defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TigerConfigurationKeygetKey()Optional<T>getValue()TgetValueOrDefault()voidputValue(T value)
-
-
-
Constructor Detail
-
TigerTypedConfigurationKey
public TigerTypedConfigurationKey(TigerConfigurationKey key, Class<T> type)
-
TigerTypedConfigurationKey
public TigerTypedConfigurationKey(String key, Class<T> type, T defaultValue)
-
TigerTypedConfigurationKey
public TigerTypedConfigurationKey(TigerConfigurationKey key, Class<T> type, T defaultValue)
-
-
Method Detail
-
getValueOrDefault
public T getValueOrDefault()
-
putValue
public void putValue(T value)
-
getKey
public TigerConfigurationKey getKey()
-
-