Class AbstractRioSetting<T>

    • Constructor Detail

      • AbstractRioSetting

        protected AbstractRioSetting​(String key,
                                     String description,
                                     T defaultValue)
        Create a new setting object that will be used to reference the given setting.
        Parameters:
        key - A unique key to use for this setting.
        description - A short human-readable description for this setting.
        defaultValue - An immutable value specifying the default for this setting. This can be optionally be overridden by a system property with a name equal to the setting's unique key.
    • Method Detail

      • getKey

        public String getKey()
        Description copied from interface: RioSetting
        A unique key for this parser setting.
        Specified by:
        getKey in interface RioSetting<T>
        Returns:
        A unique key identifying this parser setting.
      • getDescription

        public String getDescription()
        Description copied from interface: RioSetting
        The human readable name for this parser setting
        Specified by:
        getDescription in interface RioSetting<T>
        Returns:
        The name for this parser setting.
      • getDefaultValue

        public T getDefaultValue()
        Description copied from interface: RioSetting
        Returns the default value for this parser setting if it is not set by a user.
        Specified by:
        getDefaultValue in interface RioSetting<T>
        Returns:
        The default value for this parser setting.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object