T
- the data type for the valuepublic interface Setting<T>
equals
method.org.openstreetmap.josm.data.preferences
)Modifier and Type | Method and Description |
---|---|
Setting<T> |
copy()
Clone the current object.
|
default boolean |
equalVal(T otherVal)
Check if the value of this Setting object is equal to the given value.
|
Setting<T> |
getNullInstance()
Returns a setting whose value is null.
|
java.lang.Long |
getTime()
Get the time for this setting.
|
T |
getValue()
Returns the value of this setting.
|
boolean |
isNew()
Return if the setting has been marked as new.
|
void |
setNew(boolean isNew)
Mark setting as new.
|
void |
setTime(java.lang.Long time)
Set the time for this setting.
|
void |
visit(SettingVisitor visitor)
Enable usage of the visitor pattern.
|
default boolean equalVal(T otherVal)
otherVal
- the other valuevoid visit(SettingVisitor visitor)
visitor
- the visitorSetting<T> getNullInstance()
getValue()
void setTime(java.lang.Long time)
time
- the time in seconds since epochjava.lang.Long getTime()
setTime(java.lang.Long)
void setNew(boolean isNew)
IPreferences.get(java.lang.String, java.lang.String)
,
can be called from different parts of the code with the same key. In this case,
the supplied default value must match. However, this is only an error if the mismatching
default value has been seen in the same session (and not loaded from cache).isNew
- true, if it is newboolean isNew()
setNew(boolean)