Interface TripleTerm
- All Superinterfaces:
Serializable, Value
- All Known Implementing Classes:
AbstractTripleTerm, MemTripleTerm, SimpleTripleTerm
An embedded triple. Embedded triples have a subject, predicate and object. Unlike
Statement, a triple never
has an associated context.
Additional utility functionality for working with TripleTerm objects is available in the
Statements and Values utility classes.
- Author:
- Pavel Mihaylov
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Type -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this triple to another object.Gets the object of this triple.Gets the predicate of this triple.Gets the subject of this triple.default Value.TypegetType()inthashCode()Computes the hash code of this triple.default booleanCheck if the object is an instance of the given type.Methods inherited from interface Value
isBNode, isIRI, isLiteral, isResource, stringValueModifier 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.Returns the String-value of a Value object.
-
Method Details
-
isTripleTerm
default boolean isTripleTerm()Description copied from interface:ValueCheck if the object is an instance of the given type. Typically 2x than using instanceof.For implementers: This default implementation is overridden in the repsective sub-interface.
- Specified by:
isTripleTermin interfaceValue- Returns:
- true if instance of
TripleTerm
-
getType
-
getSubject
-
getPredicate
-
getObject
-
equals
-
hashCode
int hashCode()Computes the hash code of this triple.- Overrides:
hashCodein classObject- Returns:
- a hash code for this triple computed as
Objects.hash(getSubject(),getPredicate(),getObject())
-