public interface Triple
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
RDFTerm |
getObject() |
IRI |
getPredicate() |
BlankNodeOrIRI |
getSubject() |
int |
hashCode()
The hash code is computed as follow
(subject.hashCode() >> 1) ^ predicate.hashCode() ^ object.hashCode() << 1)
|
BlankNodeOrIRI getSubject()
IRI getPredicate()
RDFTerm getObject()
boolean equals(Object obj)
int hashCode()
Note that the hash returned is computed including the hash of BNodes, so it is not blank-node blind as in Graph.
This would have to change if triple should extend Graph
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.