Class BinaryResourceIdentifier
- java.lang.Object
-
- com.google.devrel.gmscore.tools.apk.arsc.BinaryResourceIdentifier
-
public class BinaryResourceIdentifier extends java.lang.ObjectResources in aResourceTableChunkare identified by an integer of the form 0xpptteeee, where pp is thePackageChunkid, tt is theTypeChunkid, and eeee is the index of the entry in theTypeChunk.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinaryResourceIdentifiercreate(int resourceId)Returns aBinaryResourceIdentifierfrom aresourceIdof the form 0xpptteeee.static BinaryResourceIdentifiercreate(int packageId, int typeId, int entryId)Returns aBinaryResourceIdentifierwith the given identifiers.intentryId()The (0-based) index of the entry in aTypeChunkcontaining this resource.booleanequals(java.lang.Object o)inthashCode()intpackageId()The (1-based) id of thePackageChunkcontaining this resource.java.lang.StringtoString()inttypeId()The (1-based) id of theTypeChunkcontaining this resource.
-
-
-
Method Detail
-
create
public static BinaryResourceIdentifier create(int resourceId)
Returns aBinaryResourceIdentifierfrom aresourceIdof the form 0xpptteeee.
-
create
public static BinaryResourceIdentifier create(int packageId, int typeId, int entryId)
Returns aBinaryResourceIdentifierwith the given identifiers.
-
packageId
public int packageId()
The (1-based) id of thePackageChunkcontaining this resource.
-
typeId
public int typeId()
The (1-based) id of theTypeChunkcontaining this resource.
-
entryId
public int entryId()
The (0-based) index of the entry in aTypeChunkcontaining this resource.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-