Interface SettingKey

    • Method Detail

      • propertyKey

        String propertyKey()
        A property key used in the properties file.
        Returns:
        property key
      • type

        <T> Class<T> type()
        Type of the property value.
        Returns:
        value class
      • defaultValue

        <T> T defaultValue()
        Default value for this key.
        Type Parameters:
        T - type of the value
        Returns:
        default value
      • autoAdjust

        default <T extends Number & Comparable<T>> void autoAdjust​(Settings settings,
                                                                   T otherValue)
        Auto-adjusts the Settings value for this key based on the value of another setting key.
        Parameters:
        settings - to adjust
        otherValue - value of the other setting to base the adjustment off