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:
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 -
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.MethodHandleReference
getMemberReference, getMethodHandleTypeMethods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
Constructor Details
-
BaseMethodHandleReference
public BaseMethodHandleReference()
-
-
Method Details
-
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 classObject- Returns:
- The hash code value for this MethodHandleReference
-
equals
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 classObject- Parameters:
o- The object to be compared for equality with this MethodHandleReference- Returns:
- true if the specified object is equal to this MethodHandleReference
-
compareTo
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 interfaceComparable<MethodHandleReference>- Specified by:
compareToin interfaceMethodHandleReference- Parameters:
o- The MethodHandleReference to compare with this MethodHandleReference- Returns:
- An integer representing the result of the comparison
-
toString
-