Class BinaryResourceIdentifier


  • public class BinaryResourceIdentifier
    extends java.lang.Object
    Resources in a ResourceTableChunk are identified by an integer of the form 0xpptteeee, where pp is the PackageChunk id, tt is the TypeChunk id, and eeee is the index of the entry in the TypeChunk.
    • Method Detail

      • packageId

        public int packageId()
        The (1-based) id of the PackageChunk containing this resource.
      • typeId

        public int typeId()
        The (1-based) id of the TypeChunk containing this resource.
      • entryId

        public int entryId()
        The (0-based) index of the entry in a TypeChunk containing this resource.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object