public interface MethodHandleReference extends Reference, java.lang.Comparable<MethodHandleReference>
Reference.InvalidReferenceException| Modifier and Type | Method and 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.
|
Reference |
getMemberReference()
Gets the member that is being referenced by this method handle.
|
int |
getMethodHandleType()
Gets the method handle type.
|
int |
hashCode()
Returns a hashcode for this MethodHandleReference.
|
validateReferenceint getMethodHandleType()
@Nonnull Reference getMemberReference()
int hashCode()
int hashCode = getMethodHandleType();
hashCode = hashCode*31 + getMemberReference().hashCode();
hashCode in class java.lang.Objectboolean equals(@Nullable
java.lang.Object o)
equals in class java.lang.Objecto - The object to be compared for equality with this MethodHandleReferenceint compareTo(@Nonnull
MethodHandleReference o)
compareTo in interface java.lang.Comparable<MethodHandleReference>o - The MethodHandleReference to compare with this MethodHandleReference