public interface MethodReference extends Reference, java.lang.Comparable<MethodReference>
Reference.InvalidReferenceException| 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.
|
java.lang.String |
getDefiningClass()
Gets the type of the class that defines the referenced method.
|
java.lang.String |
getName()
Gets the name of the referenced method.
|
java.util.List<? extends java.lang.CharSequence> |
getParameterTypes()
Gets a list of the types of the parameters of this method.
|
java.lang.String |
getReturnType()
Gets the return type of the referenced method.
|
int |
hashCode()
Returns a hashcode for this MethodReference.
|
validateReference@Nonnull java.lang.String getDefiningClass()
@Nonnull java.lang.String getName()
@Nonnull java.util.List<? extends java.lang.CharSequence> getParameterTypes()
@Nonnull java.lang.String getReturnType()
int hashCode()
int hashCode = getDefiningClass().hashCode();
hashCode = hashCode*31 + getName().hashCode();
hashCode = hashCode*31 + getReturnType().hashCode();
hashCode = hashCode*31 + CharSequenceUtils.listHashCode(getParameters());
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 MethodReferenceint compareTo(@Nonnull
MethodReference o)
compareTo in interface java.lang.Comparable<MethodReference>o - The MethodReference to compare with this MethodReference