org.apache.clerezza.rdf.core
Interface Triple
- All Known Implementing Classes:
- TripleImpl
public interface Triple
A structure containing a subject, a predicate, and an object.
Also known as a statement.
- Author:
- reto
getSubject
NonLiteral getSubject()
getPredicate
UriRef getPredicate()
getObject
Resource getObject()
equals
boolean equals(Object obj)
- Overrides:
equals in class Object
- Parameters:
obj -
- Returns:
- true iff subject, predicate, and object of both triples are equal
hashCode
int hashCode()
- The hash code is computed as follow
(subject.hashCode() >> 1) ^ subject.hashCode() ^ subject.hashCode() << 1)
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
- Overrides:
hashCode in class Object
- Returns:
- hash code
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.