Package org.jf.dexlib2.base.reference
Class BaseMethodHandleReference
- java.lang.Object
-
- org.jf.dexlib2.base.reference.BaseReference
-
- org.jf.dexlib2.base.reference.BaseMethodHandleReference
-
- All Implemented Interfaces:
java.lang.Comparable<MethodHandleReference>,MethodHandleReference,Reference
- Direct Known Subclasses:
BuilderMethodHandleReference,DexBackedMethodHandleReference,ImmutableMethodHandleReference
public abstract class BaseMethodHandleReference extends BaseReference implements MethodHandleReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException
-
-
Constructor Summary
Constructors Constructor Description BaseMethodHandleReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MethodHandleReference o)Compare this MethodHandleReference to another MethodHandleReference.booleanequals(java.lang.Object o)Compares this MethodHandleReference to another MethodHandleReference for equality.inthashCode()Returns a hashcode for this MethodHandleReference.java.lang.StringtoString()-
Methods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReference
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.reference.MethodHandleReference
getMemberReference, getMethodHandleType
-
Methods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from interface:MethodHandleReferenceReturns a hashcode for this MethodHandleReference. This hashCode is defined to be the following:int hashCode = getMethodHandleType(); hashCode = hashCode*31 + getMemberReference().hashCode();- Specified by:
hashCodein interfaceMethodHandleReference- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code value for this MethodHandleReference
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:MethodHandleReferenceCompares this MethodHandleReference to another MethodHandleReference for equality. This MethodHandleReference is equal to another MethodHandleReference if all of its fields are equal. That is, if the return values of getMethodHandleType() and getMemberReference() are all equal.- Specified by:
equalsin interfaceMethodHandleReference- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object to be compared for equality with this MethodHandleReference- Returns:
- true if the specified object is equal to this MethodHandleReference
-
compareTo
public int compareTo(@Nonnull MethodHandleReference o)Description copied from interface:MethodHandleReferenceCompare this MethodHandleReference to another MethodHandleReference. The comparison is based on the comparison of the return values of getMethodHandleType() and getMemberReference() in that order.- Specified by:
compareToin interfacejava.lang.Comparable<MethodHandleReference>- Specified by:
compareToin interfaceMethodHandleReference- Parameters:
o- The MethodHandleReference to compare with this MethodHandleReference- Returns:
- An integer representing the result of the comparison
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-