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 Details

    • TigerTypedConfigurationKey

      public TigerTypedConfigurationKey(String key, Class<T> type)
    • 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 Details

    • getValue

      public Optional<T> getValue()
    • getValueOrDefault

      public T getValueOrDefault()
    • putValue

      public void putValue(T value)
    • getKey

      public TigerConfigurationKey getKey()