public abstract class BaseMethodReference extends BaseReference implements MethodReference
Reference.InvalidReferenceException| Constructor and Description |
|---|
BaseMethodReference() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MethodReference o)
Compare this MethodReference to another MethodReference.
|
boolean |
equals(java.lang.Object o)
Compares this MethodReference to another MethodReference for equality.
|
int |
hashCode()
Returns a hashcode for this MethodReference.
|
java.lang.String |
toString() |
validateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDefiningClass, getName, getParameterTypes, getReturnTypevalidateReferencepublic int hashCode()
MethodReference
int hashCode = getDefiningClass().hashCode();
hashCode = hashCode*31 + getName().hashCode();
hashCode = hashCode*31 + getReturnType().hashCode();
hashCode = hashCode*31 + CharSequenceUtils.listHashCode(getParameters());
hashCode in interface MethodReferencehashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object o)
MethodReferenceequals in interface MethodReferenceequals in class java.lang.Objecto - The object to be compared for equality with this MethodReferencepublic int compareTo(@Nonnull
MethodReference o)
MethodReferencecompareTo in interface java.lang.Comparable<MethodReference>compareTo in interface MethodReferenceo - The MethodReference to compare with this MethodReferencepublic java.lang.String toString()
toString in class java.lang.Object