/** * Determine whether two IdentityComparable objects are identical. This is a stronger * test than equality (even schema-equality); for example two dateTime values are not identical unless * they are in the same timezone. * * @param other the other value * @return true if the two values are indentical, false otherwise */ public boolean isIdentical(IdentityComparable other) { return other instanceof NodeName && this.equals(other) && this.getPrefix().equals(((NodeName) other).getPrefix()); }
/** * Determine whether two IdentityComparable objects are identical. This is a stronger * test than equality (even schema-equality); for example two dateTime values are not identical unless * they are in the same timezone. * * @param other the other value * @return true if the two values are indentical, false otherwise */ public boolean isIdentical(IdentityComparable other) { return other instanceof NodeName && this.equals(other) && this.getPrefix().equals(((NodeName) other).getPrefix()); }