/** * Test whether two SequenceType objects represent the same type * * @param other the other SequenceType object * @return true if the other object is a SequenceType representing the same type * @since 9.5 */ public final boolean equals(Object other) { return other instanceof SequenceType && ((SequenceType) other).getOccurrenceIndicator().equals(getOccurrenceIndicator()) && ((SequenceType) other).getItemType().equals(getItemType()); }
/** * Test whether two SequenceType objects represent the same type * * @param other the other SequenceType object * @return true if the other object is a SequenceType representing the same type * @since 9.5 */ public final boolean equals(Object other) { return other instanceof SequenceType && ((SequenceType) other).getOccurrenceIndicator().equals(getOccurrenceIndicator()) && ((SequenceType) other).getItemType().equals(getItemType()); }