Class ListSetting

  • All Implemented Interfaces:
    Setting<java.util.List<java.lang.String>>

    public class ListSetting
    extends AbstractSetting<java.util.List<java.lang.String>>
    Setting containing a List of String values.
    Since:
    12881 (moved from package org.openstreetmap.josm.data.preferences)
    • Constructor Detail

      • ListSetting

        public ListSetting​(java.util.List<java.lang.String> value)
        Constructs a new ListSetting with the given value
        Parameters:
        value - The setting value
    • Method Detail

      • create

        public static ListSetting create​(java.util.Collection<java.lang.String> value)
        Convenience factory method.
        Parameters:
        value - the value
        Returns:
        a corresponding ListSetting object
      • copy

        public ListSetting copy()
        Description copied from interface: Setting
        Clone the current object.
        Returns:
        an identical copy of the current object
      • visit

        public void visit​(SettingVisitor visitor)
        Description copied from interface: Setting
        Enable usage of the visitor pattern.
        Parameters:
        visitor - the visitor
      • getNullInstance

        public ListSetting getNullInstance()
        Description copied from interface: Setting
        Returns a setting whose value is null. Cannot be static, because there is no static inheritance.
        Returns:
        a Setting object that isn't null itself, but returns null for Setting.getValue()