Package de.bmiag.tapir.configuration
Class AbstractConfiguration<T>
- java.lang.Object
-
- de.bmiag.tapir.configuration.AbstractConfiguration<T>
-
- Type Parameters:
T
- Specifies the type of the configuration value
- All Implemented Interfaces:
Configuration<T>
public abstract class AbstractConfiguration<T> extends java.lang.Object implements Configuration<T>
Abstract base class forConfiguration
. Clients should rather extend this class than extendConfiguration
directly.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description AbstractConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract T
defaultValue()
Returns the default value of the configuration.abstract T
getValue()
Returns the value of the configuration.
-
-
-
Method Detail
-
getValue
public abstract T getValue()
Returns the value of the configuration.- Specified by:
getValue
in interfaceConfiguration<T>
- Returns:
- the value of the configuration
- Since:
- 2.0.0
-
defaultValue
protected abstract T defaultValue()
Returns the default value of the configuration.- Returns:
- the default value of the configuration
- Since:
- 2.0.0
-
-