Last change
on this file since 12196 was 11394, checked in by Don-vip, 7 years ago |
simplify preference settings equals handling (already performed by AbstractList.equals / AbstractMap.equals) - fixes squid:S1206 and findbugs HE_EQUALS_NO_HASHCODE warnings
|
-
Property svn:eol-style
set to
native
|
File size:
720 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.preferences;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Setting containing a {@link String} value.
|
---|
6 | * @since 9759
|
---|
7 | */
|
---|
8 | public 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.