source: josm/trunk/src/org/openstreetmap/josm/spi/preferences/StringSetting.java@ 14183

Last change on this file since 14183 was 12882, checked in by bastiK, 7 years ago

see #15229 - fix @since

  • Property svn:eol-style set to native
File size: 789 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.spi.preferences;
3
4/**
5 * Setting containing a {@link String} value.
6 * @since 12881 (moved from package {@code org.openstreetmap.josm.data.preferences})
7 */
8public class StringSetting extends AbstractSetting<String> {
9 /**
10 * Constructs a new {@code StringSetting} with the given value
11 * @param value The setting value
12 */
13 public StringSetting(String value) {
14 super(value);
15 }
16
17 @Override
18 public StringSetting copy() {
19 return new StringSetting(value);
20 }
21
22 @Override
23 public void visit(SettingVisitor visitor) {
24 visitor.visit(this);
25 }
26
27 @Override
28 public StringSetting getNullInstance() {
29 return new StringSetting(null);
30 }
31}
Note: See TracBrowser for help on using the repository browser.