public static class Preferences.StringSetting extends Preferences.AbstractSetting<java.lang.String>
String
value.value
Constructor and Description |
---|
StringSetting(java.lang.String value)
Constructs a new
StringSetting with the given value |
Modifier and Type | Method and Description |
---|---|
Preferences.StringSetting |
copy()
Clone the current object.
|
boolean |
equals(java.lang.Object other) |
boolean |
equalVal(java.lang.String otherVal)
Check if the value of this Setting object is equal to the given value.
|
Preferences.StringSetting |
getNullInstance()
Returns a setting whose value is null.
|
void |
visit(Preferences.SettingVisitor visitor)
Enable usage of the visitor pattern.
|
getValue, hashCode, toString
public StringSetting(java.lang.String value)
StringSetting
with the given valuevalue
- The setting valuepublic boolean equalVal(java.lang.String otherVal)
Preferences.Setting
otherVal
- the other valuepublic Preferences.StringSetting copy()
Preferences.Setting
public void visit(Preferences.SettingVisitor visitor)
Preferences.Setting
visitor
- the visitorpublic Preferences.StringSetting getNullInstance()
Preferences.Setting
Preferences.Setting.getValue()
public boolean equals(java.lang.Object other)
equals
in class Preferences.AbstractSetting<java.lang.String>