Package org.eclipse.xtext.preferences
Class EnumKey<E extends java.lang.Enum<E>>
- java.lang.Object
-
- org.eclipse.xtext.preferences.PreferenceKey
-
- org.eclipse.xtext.preferences.TypedPreferenceKey<E>
-
- org.eclipse.xtext.preferences.EnumKey<E>
-
public class EnumKey<E extends java.lang.Enum<E>> extends TypedPreferenceKey<E>
- Since:
- 2.26
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString(E value)Convert the given value to its string representation.EtoValue(java.lang.String string)Convert the given string to its type-safe value.-
Methods inherited from class org.eclipse.xtext.preferences.PreferenceKey
equals, getDefaultValue, getId, hashCode, toString
-
-
-
-
Method Detail
-
toString
public java.lang.String toString(E value)
Description copied from class:TypedPreferenceKeyConvert the given value to its string representation. A null value is converted to a null string.- Specified by:
toStringin classTypedPreferenceKey<E extends java.lang.Enum<E>>
-
toValue
public E toValue(java.lang.String string)
Description copied from class:TypedPreferenceKeyConvert the given string to its type-safe value. The null string is converted to the null value.- Specified by:
toValuein classTypedPreferenceKey<E extends java.lang.Enum<E>>
-
-