Package org.eclipse.rdf4j.model.base
Class AbstractTriple
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractTriple
- All Implemented Interfaces:
Serializable
,Resource
,Triple
,Value
- Direct Known Subclasses:
SimpleTriple
Base class for
Triple
, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
Methods inherited from interface org.eclipse.rdf4j.model.Triple
getObject, getPredicate, getSubject, isTriple
-
Constructor Details
-
AbstractTriple
public AbstractTriple()
-
-
Method Details
-
stringValue
Description copied from interface:Value
Returns the String-value of a Value object. This returns either aLiteral
's label, aIRI
's URI or aBNode
's ID.- Specified by:
stringValue
in interfaceValue
-
equals
Description copied from interface:Triple
Compares this triple to another object. -
hashCode
public int hashCode()Description copied from interface:Triple
Computes the hash code of this triple.- Specified by:
hashCode
in interfaceTriple
- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this triple computed as
Objects.hash
(Triple.getSubject()
,Triple.getPredicate()
,Triple.getObject()
)
-
toString
-