Enum BinaryResourceValue.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ATTRIBUTE
      data holds an attribute resource identifier.
      DIMENSION
      data holds a complex number encoding a dimension value, such as "100in".
      DYNAMIC_ATTRIBUTE
      data holds a dynamic attribute resource identifier.
      DYNAMIC_REFERENCE
      data holds a dynamic ResourceTableChunk entry reference.
      FLOAT
      data holds a single-precision floating point number.
      FRACTION
      data holds a complex number encoding a fraction of a container.
      INT_BOOLEAN
      data is either 0 (false) or 1 (true).
      INT_COLOR_ARGB4
      data is a raw integer value of the form #argb.
      INT_COLOR_ARGB8
      data is a raw integer value of the form #aarrggbb.
      INT_COLOR_RGB4
      data is a raw integer value of the form #rgb.
      INT_COLOR_RGB8
      data is a raw integer value of the form #rrggbb.
      INT_DEC
      data is a raw integer value of the form n..n.
      INT_HEX
      data is a raw integer value of the form 0xn..n.
      NULL
      data is either 0 (undefined) or 1 (empty).
      REFERENCE
      data holds a ResourceTableChunk entry reference.
      STRING
      data holds an index into the containing resource table's string pool.
    • Method Detail

      • values

        public static BinaryResourceValue.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BinaryResourceValue.Type c : BinaryResourceValue.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BinaryResourceValue.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • code

        public byte code()