@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (obj instanceof RDFTriple) { RDFTriple other = (RDFTriple) obj; return subject.equals(other.subject) && predicate.equals(other.predicate) && object.equals(other.object); } // Commons RDF Triple.equals() contract if (obj instanceof Triple) { // Note: This also works on RDFLiteral // but is slightly more expensive as it must call the // getter methods when accessing obj. // // To ensure future compatibility, the Commons RDF getter // methods are also called on this rather than using the fields. Triple triple = (Triple) obj; return getSubject().equals(triple.getSubject()) && getPredicate().equals(triple.getPredicate()) && getObject().equals(triple.getObject()); } return false; }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (obj instanceof RDFTriple) { RDFTriple other = (RDFTriple) obj; return subject.equals(other.subject) && predicate.equals(other.predicate) && object.equals(other.object); } // Commons RDF Triple.equals() contract if (obj instanceof Triple) { // Note: This also works on RDFLiteral // but is slightly more expensive as it must call the // getter methods when accessing obj. // // To ensure future compatibility, the Commons RDF getter // methods are also called on this rather than using the fields. Triple triple = (Triple) obj; return getSubject().equals(triple.getSubject()) && getPredicate().equals(triple.getPredicate()) && getObject().equals(triple.getObject()); } return false; }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (obj instanceof RDFTriple) { RDFTriple other = (RDFTriple) obj; return subject.equals(other.subject) && predicate.equals(other.predicate) && object.equals(other.object); } // Commons RDF Triple.equals() contract if (obj instanceof Triple) { // Note: This also works on RDFLiteral // but is slightly more expensive as it must call the // getter methods when accessing obj. // // To ensure future compatibility, the Commons RDF getter // methods are also called on this rather than using the fields. Triple triple = (Triple) obj; return getSubject().equals(triple.getSubject()) && getPredicate().equals(triple.getPredicate()) && getObject().equals(triple.getObject()); } return false; }
RDFNode object = triple.getObject(); if (lastSubject != null && (subj.equals(lastSubject) || subj.isAnonymous())) { if (lastPredicate != null && pred.equals(lastPredicate)) {
RDFNode object = triple.getObject(); if (lastSubject != null && (subj.equals(lastSubject) || subj.isAnonymous())) { if (lastPredicate != null && pred.equals(lastPredicate)) {
RDFNode object = triple.getObject(); if (lastSubject != null && (subj.equals(lastSubject) || subj.isAnonymous())) { if (lastPredicate != null && pred.equals(lastPredicate)) {
RDFNode object = triple.getObject(); if (lastSubject != null && (subj.equals(lastSubject) || subj.isAnonymous())) { if (lastPredicate != null && pred.equals(lastPredicate)) {
RDFResourceIRI pred = triple.getProperty(); if (lastSubject != null && (subj.equals(lastSubject) || subj.isAnonymous())) { if (lastPredicate != null && pred.equals(lastPredicate)) {