@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof StandardURI)) { return false; } StandardURI that = (StandardURI) o; if (compareScheme(that) != 0) { return false; } if ((this.mPath == null && that.mPath != null) || (this.mPath != null && that.mPath == null)) { return false; } if (this.mPath == null) { return URIUtils.equals(this.mSchemeSpecificPart, that.mSchemeSpecificPart); } return URIUtils.equals(this.mPath, that.mPath) && URIUtils.equals(this.mQuery, that.mQuery) && this.mAuthority.equals(that.mAuthority); }