Class 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 for Configuration. Clients should rather extend this class than extend Configuration directly.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractConfiguration

        public AbstractConfiguration()
    • Method Detail

      • getValue

        public abstract T getValue()
        Returns the value of the configuration.
        Specified by:
        getValue in interface Configuration<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