Class EnumKey<E extends java.lang.Enum<E>>


  • public class EnumKey<E extends java.lang.Enum<E>>
    extends TypedPreferenceKey<E>
    Since:
    2.26
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EnumKey​(java.lang.String id, E defaultValue, java.lang.Class<E> type)  
    • Constructor Detail

      • EnumKey

        protected EnumKey​(java.lang.String id,
                          E defaultValue,
                          java.lang.Class<E> type)
    • Method Detail

      • toString

        public java.lang.String toString​(E value)
        Description copied from class: TypedPreferenceKey
        Convert the given value to its string representation. A null value is converted to a null string.
        Specified by:
        toString in class TypedPreferenceKey<E extends java.lang.Enum<E>>
      • toValue

        public E toValue​(java.lang.String string)
        Description copied from class: TypedPreferenceKey
        Convert the given string to its type-safe value. The null string is converted to the null value.
        Specified by:
        toValue in class TypedPreferenceKey<E extends java.lang.Enum<E>>