Class LibraryChunk.Entry
- java.lang.Object
-
- com.google.devrel.gmscore.tools.apk.arsc.LibraryChunk.Entry
-
- All Implemented Interfaces:
SerializableResource
- Enclosing class:
- LibraryChunk
protected static class LibraryChunk.Entry extends java.lang.Object implements SerializableResource
A shared library package-id to package name entry.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()intpackageId()The id assigned to the shared library at build time.java.lang.StringpackageName()The package name of the shared library.byte[]toByteArray()Converts this resource into an array of bytes representation.byte[]toByteArray(boolean shrink)Converts this resource into an array of bytes representation.
-
-
-
Method Detail
-
packageId
public int packageId()
The id assigned to the shared library at build time.
-
packageName
public java.lang.String packageName()
The package name of the shared library.
-
toByteArray
public byte[] toByteArray() throws java.io.IOExceptionDescription copied from interface:SerializableResourceConverts this resource into an array of bytes representation.- Specified by:
toByteArrayin interfaceSerializableResource- Returns:
- An array of bytes representing this resource.
- Throws:
java.io.IOException
-
toByteArray
public byte[] toByteArray(boolean shrink) throws java.io.IOExceptionDescription copied from interface:SerializableResourceConverts this resource into an array of bytes representation.- Specified by:
toByteArrayin interfaceSerializableResource- Parameters:
shrink- True if, when converting to a byte array, this resource can modify the returned bytes in an effort to reduce the size.- Returns:
- An array of bytes representing this resource.
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-