Package org.jf.dexlib2.base.reference
Class BaseFieldReference
java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseFieldReference
- All Implemented Interfaces:
Comparable<FieldReference>,FieldReference,Reference
- Direct Known Subclasses:
BuilderField,BuilderFieldReference,DexBackedField,DexBackedFieldReference,FieldReferenceRewriter.RewrittenFieldReference,FieldRewriter.RewrittenField,ImmutableField,ImmutableFieldReference,ReflectionField
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReferenceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jf.dexlib2.iface.reference.FieldReference
getDefiningClass, getName, getTypeMethods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
Constructor Details
-
BaseFieldReference
public BaseFieldReference()
-
-
Method Details
-
hashCode
public int hashCode()Description copied from interface:FieldReferenceReturns a hashcode for this FieldReference. This hashCode is defined to be the following:int hashCode = getDefiningClass().hashCode(); hashCode = hashCode*31 + getName().hashCode(); hashCode = hashCode*31 + getType().hashCode();- Specified by:
hashCodein interfaceFieldReference- Overrides:
hashCodein classObject- Returns:
- The hash code value for this FieldReference
-
equals
Description copied from interface:FieldReferenceCompares this FieldReference to another FieldReference for equality. This FieldReference is equal to another FieldReference if all of it's "fields" are equal. That is, if the return values of getDefiningClass(), getName() and getType() are all equal.- Specified by:
equalsin interfaceFieldReference- Overrides:
equalsin classObject- Parameters:
o- The object to be compared for equality with this FieldReference- Returns:
- true if the specified object is equal to this FieldReference
-
compareTo
Description copied from interface:FieldReferenceCompare this FieldReference to another FieldReference. The comparison is based on the comparison of the return values of getDefiningClass(), getName() and getType(), in that order.- Specified by:
compareToin interfaceComparable<FieldReference>- Specified by:
compareToin interfaceFieldReference- Parameters:
o- The FieldReference to compare with this FieldReference- Returns:
- An integer representing the result of the comparison
-
toString
-