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 int
compareTo(MethodHandleReference o)
Compare this MethodHandleReference to another MethodHandleReference.boolean
equals(java.lang.Object o)
Compares this MethodHandleReference to another MethodHandleReference for equality.int
hashCode()
Returns a hashcode for this MethodHandleReference.java.lang.String
toString()
-
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:MethodHandleReference
Returns a hashcode for this MethodHandleReference. This hashCode is defined to be the following:int hashCode = getMethodHandleType(); hashCode = hashCode*31 + getMemberReference().hashCode();
- Specified by:
hashCode
in interfaceMethodHandleReference
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code value for this MethodHandleReference
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:MethodHandleReference
Compares 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:
equals
in interfaceMethodHandleReference
- Overrides:
equals
in 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:MethodHandleReference
Compare 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:
compareTo
in interfacejava.lang.Comparable<MethodHandleReference>
- Specified by:
compareTo
in 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:
toString
in classjava.lang.Object
-
-