Package com.android.dex
Class FieldId
- java.lang.Object
-
- com.android.dex.FieldId
-
- All Implemented Interfaces:
Comparable<FieldId>
public final class FieldId extends Object implements Comparable<FieldId>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FieldId other)Compares this object to the specified object to determine their relative order.intgetDeclaringClassIndex()intgetNameIndex()intgetTypeIndex()StringtoString()Returns a string containing a concise, human-readable description of this object.voidwriteTo(Dex.Section out)
-
-
-
Constructor Detail
-
FieldId
public FieldId(Dex dex, int declaringClassIndex, int typeIndex, int nameIndex)
-
-
Method Detail
-
getDeclaringClassIndex
public int getDeclaringClassIndex()
-
getTypeIndex
public int getTypeIndex()
-
getNameIndex
public int getNameIndex()
-
compareTo
public int compareTo(FieldId other)
Description copied from interface:ComparableCompares this object to the specified object to determine their relative order.- Specified by:
compareToin interfaceComparable<FieldId>- Parameters:
other- the object to compare to this instance.- Returns:
- a negative integer if this instance is less than
another; a positive integer if this instance is greater thananother; 0 if this instance has the same order asanother.
-
writeTo
public void writeTo(Dex.Section out)
-
toString
public String toString()
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.
-
-