Class ListSetting

java.lang.Object
org.openstreetmap.josm.spi.preferences.AbstractSetting<List<String>>
org.openstreetmap.josm.spi.preferences.ListSetting
All Implemented Interfaces:
Setting<List<String>>

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

    • ListSetting

      public ListSetting(List<String> value)
      Constructs a new ListSetting with the given value
      Parameters:
      value - The setting value
  • Method Details

    • create

      public static ListSetting create(Collection<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
    • consistencyTest

      private void consistencyTest()
    • visit

      public void visit(SettingVisitor visitor)
      Description copied from interface: Setting
      Enable usage of the visitor pattern.
      Parameters:
      visitor - the visitor
    • 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()