@Override public boolean equals(Object other) { if (!(other instanceof ID)) { return false; } ID otherID = (ID) other; if (this.sequenceId != null) { return this.sequenceId.equals(otherID.sequenceId); } else { return this.identifiers.equals(otherID.identifiers); } }
@Override public boolean equals(Object other) { if (!(other instanceof ID)) { return false; } ID otherID = (ID) other; if (this.sequenceId != null) { return this.sequenceId.equals(otherID.sequenceId); } else { return this.identifiers.equals(otherID.identifiers); } }