/** * Implements Comparable. This compareTo is inconsistent with * equals unless isImmutable() is true. */ public final int compareTo(Object obj) { int result = compareValue((XmlObject)obj); // can throw ClassCast if (result == 2) throw new ClassCastException(); return result; }
/** * Implements Comparable. This compareTo is inconsistent with * equals unless isImmutable() is true. */ public final int compareTo(Object obj) { int result = compareValue((XmlObject)obj); // can throw ClassCast if (result == 2) throw new ClassCastException(); return result; }
/** * Implements Comparable. This compareTo is inconsistent with * equals unless isImmutable() is true. */ public final int compareTo(Object obj) { int result = compareValue((XmlObject)obj); // can throw ClassCast if (result == 2) throw new ClassCastException(); return result; }