@Override public int hashCode() { int hashCode = getDefiningClass().hashCode(); hashCode = hashCode*31 + getName().hashCode(); hashCode = hashCode*31 + getReturnType().hashCode(); return hashCode*31 + getParameterTypes().hashCode(); }
@Override public int hashCode() { int hashCode = getDefiningClass().hashCode(); hashCode = hashCode*31 + getName().hashCode(); hashCode = hashCode*31 + getReturnType().hashCode(); return hashCode*31 + getParameterTypes().hashCode(); }
@Override public int hashCode() { int hashCode = getDefiningClass().hashCode(); hashCode = hashCode*31 + getName().hashCode(); hashCode = hashCode*31 + getReturnType().hashCode(); return hashCode*31 + getParameterTypes().hashCode(); }
@Override public boolean equals(@Nullable Object o) { if (o != null && o instanceof MethodReference) { MethodReference other = (MethodReference)o; return getDefiningClass().equals(other.getDefiningClass()) && getName().equals(other.getName()) && getReturnType().equals(other.getReturnType()) && CharSequenceUtils.listEquals(getParameterTypes(), other.getParameterTypes()); } return false; }
@Override public boolean equals(@Nullable Object o) { if (o != null && o instanceof MethodReference) { MethodReference other = (MethodReference)o; return getDefiningClass().equals(other.getDefiningClass()) && getName().equals(other.getName()) && getReturnType().equals(other.getReturnType()) && CharSequenceUtils.listEquals(getParameterTypes(), other.getParameterTypes()); } return false; }
@Override public int compareTo(@Nonnull MethodReference o) { int res = getDefiningClass().compareTo(o.getDefiningClass()); if (res != 0) return res; res = getName().compareTo(o.getName()); if (res != 0) return res; res = getReturnType().compareTo(o.getReturnType()); if (res != 0) return res; return CollectionUtils.compareAsIterable(Ordering.usingToString(), getParameterTypes(), o.getParameterTypes()); }
@Override public boolean equals(@Nullable Object o) { if (o != null && o instanceof MethodReference) { MethodReference other = (MethodReference)o; return getDefiningClass().equals(other.getDefiningClass()) && getName().equals(other.getName()) && getReturnType().equals(other.getReturnType()) && CharSequenceUtils.listEquals(getParameterTypes(), other.getParameterTypes()); } return false; }
@Override public int compareTo(@Nonnull MethodReference o) { int res = getDefiningClass().compareTo(o.getDefiningClass()); if (res != 0) return res; res = getName().compareTo(o.getName()); if (res != 0) return res; res = getReturnType().compareTo(o.getReturnType()); if (res != 0) return res; return CollectionUtils.compareAsIterable(Ordering.usingToString(), getParameterTypes(), o.getParameterTypes()); } }
@Override public int compareTo(@Nonnull MethodReference o) { int res = getDefiningClass().compareTo(o.getDefiningClass()); if (res != 0) return res; res = getName().compareTo(o.getName()); if (res != 0) return res; res = getReturnType().compareTo(o.getReturnType()); if (res != 0) return res; return CollectionUtils.compareAsIterable(Ordering.usingToString(), getParameterTypes(), o.getParameterTypes()); }