Class AbstractTripleTerm
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractTripleTerm
- All Implemented Interfaces:
Serializable, TripleTerm, Value
- Direct Known Subclasses:
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, isTripleTermModifier and TypeMethodDescriptionGets the object of this triple.Gets the predicate of this triple.Gets the subject of this triple.default Value.TypegetType()default booleanCheck if the object is an instance of the given type.Methods inherited from interface Value
isBNode, isIRI, isLiteral, isResourceModifier and TypeMethodDescriptiondefault booleanisBNode()Check if the object is an instance of the given type.default booleanisIRI()Check if the object is an instance of the given type.default booleanCheck if the object is an instance of the given type.default booleanCheck if the object is an instance of the given type.
-
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
-