Class JsonColor

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class JsonColor
     implements Parcelable
                        

    JSON-compatible class for Color

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String hexString
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonColor(String hexString)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getHexString()
      final Integer toSdk() Converts JSON-compatible object to SDK object
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonColor

        JsonColor(String hexString)
        Parameters:
        hexString - hex-string representation of the color