Class EnumProperty<T extends Enum<T>>
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.ParametrizedEnumProperty<T>
-
- org.openstreetmap.josm.data.preferences.EnumProperty<T>
-
- Type Parameters:
T
- theEnum
class
public class EnumProperty<T extends Enum<T>> extends ParametrizedEnumProperty<T>
A property containing anEnum
value.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
key
-
Fields inherited from class org.openstreetmap.josm.data.preferences.ParametrizedEnumProperty
defaultValue, enumClass
-
-
Constructor Summary
Constructors Constructor Description EnumProperty(String key, Class<T> enumClass, T defaultValue)
Constructs a newEnumProperty
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getKey(String... params)
-
Methods inherited from class org.openstreetmap.josm.data.preferences.ParametrizedEnumProperty
get, parse, put
-
-
-
-
Constructor Detail
-
EnumProperty
public EnumProperty(String key, Class<T> enumClass, T defaultValue)
Constructs a newEnumProperty
.- Parameters:
key
- The property keyenumClass
- TheEnum
classdefaultValue
- The default value
-
-