/** {@inheritDoc} */ public int compareTo(TypeIdItem o) { //sort by the index of the StringIdItem return typeDescriptor.compareTo(o.typeDescriptor); }
/** {@inheritDoc} */ public int compareTo(FieldIdItem o) { int result = classType.compareTo(o.classType); if (result != 0) { return result; } result = fieldName.compareTo(o.fieldName); if (result != 0) { return result; } return fieldType.compareTo(o.fieldType); }
/** {@inheritDoc} */ public int compareTo(MethodIdItem o) { int result = classType.compareTo(o.classType); if (result != 0) { return result; } result = methodName.compareTo(o.methodName); if (result != 0) { return result; } return methodPrototype.compareTo(o.methodPrototype); }
/** {@inheritDoc} */ protected int compareValue(EncodedValue o) { AnnotationEncodedSubValue other = (AnnotationEncodedSubValue)o; int comp = annotationType.compareTo(other.annotationType); if (comp != 0) { return comp; } comp = names.length - other.names.length; if (comp != 0) { return comp; } for (int i=0; i<names.length; i++) { comp = names[i].compareTo(other.names[i]); if (comp != 0) { return comp; } comp = values[i].compareTo(other.values[i]); if (comp != 0) { return comp; } } return comp; }
/** {@inheritDoc} */ public int compareTo(TypeIdItem o) { //sort by the index of the StringIdItem return typeDescriptor.compareTo(o.typeDescriptor); }
/** {@inheritDoc} */ protected int compareValue(EncodedValue o) { StringEncodedValue other = (StringEncodedValue)o; return value.compareTo(other.value); }
/** {@inheritDoc} */ public int compareTo(FieldIdItem o) { int result = classType.compareTo(o.classType); if (result != 0) { return result; } result = fieldName.compareTo(o.fieldName); if (result != 0) { return result; } return fieldType.compareTo(o.fieldType); }
/** {@inheritDoc} */ public int compareTo(MethodIdItem o) { int result = classType.compareTo(o.classType); if (result != 0) { return result; } result = methodName.compareTo(o.methodName); if (result != 0) { return result; } return methodPrototype.compareTo(o.methodPrototype); }
/** {@inheritDoc} */ protected int compareValue(EncodedValue o) { AnnotationEncodedSubValue other = (AnnotationEncodedSubValue)o; int comp = annotationType.compareTo(other.annotationType); if (comp != 0) { return comp; } comp = names.length - other.names.length; if (comp != 0) { return comp; } for (int i=0; i<names.length; i++) { comp = names[i].compareTo(other.names[i]); if (comp != 0) { return comp; } comp = values[i].compareTo(other.values[i]); if (comp != 0) { return comp; } } return comp; }