Class ParametrizedEnumProperty<T extends Enum<T>>
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.ParametrizedEnumProperty<T>
-
- Type Parameters:
T
- theEnum
class
- Direct Known Subclasses:
EnumProperty
public abstract class ParametrizedEnumProperty<T extends Enum<T>> extends Object
Abstract base class for properties withEnum
value, where the preference key is generated from a list of parameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected T
defaultValue
protected Class<T>
enumClass
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParametrizedEnumProperty(Class<T> enumClass, T defaultValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
get(String... params)
protected abstract String
getKey(String... params)
protected T
parse(String s)
boolean
put(T value, String... params)
-
-
-
Constructor Detail
-
ParametrizedEnumProperty
protected ParametrizedEnumProperty(Class<T> enumClass, T defaultValue)
-
-