/** * Compares this <code>EncodedMethod</code> to another, based on the comparison of the associated * <code>MethodIdItem</code> * @param other The <code>EncodedMethod</code> to compare against * @return a standard integer comparison value indicating the relationship */ public int compareTo(EncodedMethod other) { return method.compareTo(other.method); }
public int compareTo(ParameterAnnotation other) { return method.compareTo(other.method); } }
/** {@inheritDoc} */ public int compareTo(CodeItem other) { if (parent == null) { if (other.parent == null) { return 0; } return -1; } if (other.parent == null) { return 1; } return parent.method.compareTo(other.parent.method); }
public int compareTo(MethodAnnotation other) { return method.compareTo(other.method); } }
/** {@inheritDoc} */ protected int compareValue(EncodedValue o) { MethodEncodedValue other = (MethodEncodedValue)o; return value.compareTo(other.value); }
/** {@inheritDoc} */ public int compareTo(CodeItem other) { if (parent == null) { if (other.parent == null) { return 0; } return -1; } if (other.parent == null) { return 1; } return parent.method.compareTo(other.parent.method); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; return compareTo((MethodAnnotation)o) == 0; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; return compareTo((ParameterAnnotation)o) == 0; }