public class StringSetting extends AbstractSetting<java.lang.String>
String
value.isNew, time, value
Constructor and Description |
---|
StringSetting(java.lang.String value)
Constructs a new
StringSetting with the given value |
Modifier and Type | Method and Description |
---|---|
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.
|
StringSetting |
getNullInstance()
Returns a setting whose value is null.
|
void |
visit(SettingVisitor visitor)
Enable usage of the visitor pattern.
|
public StringSetting(java.lang.String value)
StringSetting
with the given valuevalue
- The setting valuepublic boolean equalVal(java.lang.String otherVal)
Setting
otherVal
- the other valuepublic StringSetting copy()
Setting
public void visit(SettingVisitor visitor)
Setting
visitor
- the visitorpublic StringSetting getNullInstance()
Setting
Setting.getValue()
public boolean equals(java.lang.Object other)
equals
in class AbstractSetting<java.lang.String>