Class AbstractTripleTerm
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractTripleTerm
- All Implemented Interfaces:
Serializable, TripleTerm, Value
- Direct Known Subclasses:
LmdbTripleTerm, NativeTripleTerm, SimpleTripleTerm
Base class for
TripleTerm, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from interface TripleTerm
getObject, getPredicate, getSubject, getType, isTripleTermMethods inherited from interface Value
isBNode, isIRI, isLiteral, isResource
-
Constructor Details
-
AbstractTripleTerm
public AbstractTripleTerm()
-
-
Method Details
-
stringValue
-
equals
Description copied from interface:TripleTermCompares this triple to another object.- Specified by:
equalsin interfaceTripleTerm- Overrides:
equalsin classObject- Parameters:
o- the object to compare this triple to- Returns:
trueif theotherobject is an instance ofTripleTermand if their subjects, predicates and objects are equal;falseotherwise
-
hashCode
public int hashCode()Description copied from interface:TripleTermComputes the hash code of this triple.- Specified by:
hashCodein interfaceTripleTerm- Overrides:
hashCodein classObject- Returns:
- a hash code for this triple computed as
Objects.hash(TripleTerm.getSubject(),TripleTerm.getPredicate(),TripleTerm.getObject())
-
toString
-