Class BooleanKey


  • public class BooleanKey
    extends TypedPreferenceKey<java.lang.Boolean>
    A boolean preference key. Valid representations are "true" and "false".
    Since:
    2.26
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanKey​(java.lang.String id, java.lang.Boolean defaultValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString​(java.lang.Boolean value)
      Convert the given value to its string representation.
      java.lang.Boolean toValue​(java.lang.String string)
      Convert the given string to its type-safe value.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BooleanKey

        public BooleanKey​(java.lang.String id,
                          java.lang.Boolean defaultValue)
    • Method Detail

      • toString

        public java.lang.String toString​(java.lang.Boolean 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<java.lang.Boolean>
      • toValue

        public java.lang.Boolean 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<java.lang.Boolean>