Ejemplo n.º 1
0
 @Override
 public int compareTo(@Nonnull MethodProtoReference o) {
   int res = getReturnType().compareTo(o.getReturnType());
   if (res != 0) return res;
   return CollectionUtils.compareAsIterable(
       Ordering.usingToString(), getParameterTypes(), o.getParameterTypes());
 }
Ejemplo n.º 2
0
 @Override
 public boolean equals(@Nullable Object o) {
   if (o instanceof MethodProtoReference) {
     MethodProtoReference other = (MethodProtoReference) o;
     return getReturnType().equals(other.getReturnType())
         && CharSequenceUtils.listEquals(getParameterTypes(), other.getParameterTypes());
   }
   return false;
 }