Class SetRioSetting<T>

  • Type Parameters:
    T - the type of the elements in the set
    All Implemented Interfaces:
    Serializable, RioSetting<Set<T>>

    public final class SetRioSetting<T>
    extends AbstractRioSetting<Set<T>>
    A RioSetting with a Set value. The given default for the setting can be overridden by means of a System property with a name equal to the setting key, and a string value of a JSON array of the desired values.
    See Also:
    Serialized Form
    • Constructor Detail

      • SetRioSetting

        public SetRioSetting​(String key,
                             String description,
                             Set<T> defaultValue)
    • Method Detail

      • convert

        public Set<T> convert​(String stringRepresentation)
        Description copied from interface: RioSetting
        Attempts to convert from a string to a type-safe representation based on the generic type of this setting.
        Parameters:
        stringRepresentation - a string representation of a value for this setting.
        Returns:
        The corresponding object of type T for the supplied string value.