Class PrefEntry
java.lang.Object
org.openstreetmap.josm.gui.preferences.advanced.PrefEntry
- All Implemented Interfaces:
Comparable<PrefEntry>
Class to store single preference line for the table.
- Since:
- 6021
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanSetting<?>Returns the preference default value.getKey()Returns the preference key.Setting<?>getValue()Returns the preference value.inthashCode()booleanDetermines if this preference entry has been modified.booleanDetermines if the current value is the default value.voidMarks this preference entry as modified.voidreset()Resets this preference entry to default state.voidSets the preference value.toString()
-
Field Details
-
key
-
value
-
defaultValue
-
isDefault
-
changed
-
-
Constructor Details
-
PrefEntry
Constructs a newPrefEntry.- Parameters:
key- The preference keyvalue- The preference valuedefaultValue- The preference default valueisDefault- determines if the current value is the default value
-
-
Method Details
-
getKey
Returns the preference key.- Returns:
- the preference key
-
getValue
Returns the preference value.- Returns:
- the preference value
-
getDefaultValue
Returns the preference default value.- Returns:
- the preference default value
-
setValue
Sets the preference value.- Parameters:
value- the preference value
-
isDefault
Determines if the current value is the default value.- Returns:
trueif the current value is the default value,falseotherwise
-
isChanged
Determines if this preference entry has been modified.- Returns:
trueif this preference entry has been modified,falseotherwise
-
markAsChanged
Marks this preference entry as modified. -
reset
Resets this preference entry to default state. -
compareTo
- Specified by:
compareToin interfaceComparable<PrefEntry>
-
hashCode
-
equals
-
toString
-