public boolean equals(Object o) { if (!(o instanceof WstxInputLocation)) { return false; } WstxInputLocation other = (WstxInputLocation) o; // char offset should be good enough, without row/col: if (other.getCharacterOffsetLong() != getCharacterOffsetLong()) { return false; } String otherPub = other.getPublicId(); if (otherPub == null) { otherPub = ""; } if (!otherPub.equals(mPublicId)) { return false; } String otherSys = other.getSystemId(); if (otherSys == null) { otherSys = ""; } return otherSys.equals(mSystemId); }
public boolean equals(Object o) { if (!(o instanceof WstxInputLocation)) { return false; } WstxInputLocation other = (WstxInputLocation) o; // char offset should be good enough, without row/col: if (other.getCharacterOffsetLong() != getCharacterOffsetLong()) { return false; } String otherPub = other.getPublicId(); if (otherPub == null) { otherPub = ""; } if (!otherPub.equals(mPublicId)) { return false; } String otherSys = other.getSystemId(); if (otherSys == null) { otherSys = ""; } return otherSys.equals(mSystemId); }
@Override public boolean equals(Object o) { if (!(o instanceof WstxInputLocation)) { return false; } WstxInputLocation other = (WstxInputLocation) o; // char offset should be good enough, without row/col: if (other.getCharacterOffsetLong() != getCharacterOffsetLong()) { return false; } String otherPub = other.getPublicId(); if (otherPub == null) { otherPub = ""; } if (!otherPub.equals(mPublicId)) { return false; } String otherSys = other.getSystemId(); if (otherSys == null) { otherSys = ""; } return otherSys.equals(mSystemId); }
@Override public boolean equals(Object o) { if (!(o instanceof WstxInputLocation)) { return false; } WstxInputLocation other = (WstxInputLocation) o; // char offset should be good enough, without row/col: if (other.getCharacterOffsetLong() != getCharacterOffsetLong()) { return false; } String otherPub = other.getPublicId(); if (otherPub == null) { otherPub = ""; } if (!otherPub.equals(mPublicId)) { return false; } String otherSys = other.getSystemId(); if (otherSys == null) { otherSys = ""; } return otherSys.equals(mSystemId); }
@Override public boolean equals(Object o) { if (!(o instanceof WstxInputLocation)) { return false; } WstxInputLocation other = (WstxInputLocation) o; // char offset should be good enough, without row/col: if (other.getCharacterOffsetLong() != getCharacterOffsetLong()) { return false; } String otherPub = other.getPublicId(); if (otherPub == null) { otherPub = ""; } if (!otherPub.equals(mPublicId)) { return false; } String otherSys = other.getSystemId(); if (otherSys == null) { otherSys = ""; } return otherSys.equals(mSystemId); }