Interface Triple
- All Superinterfaces:
Resource,Serializable,Value
- All Known Implementing Classes:
AbstractTriple,MemTriple,SimpleTriple
An RDF-star 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 Triple objects is available in the
Statements and Values utility classes.
- Author:
- Pavel Mihaylov
- See Also:
-
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.inthashCode()Computes the hash code of this triple.default booleanisTriple()Check if the object is an instance of the given type.Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResourceMethods inherited from interface org.eclipse.rdf4j.model.Value
isBNode, isIRI, isLiteral, stringValue
-
Method Details
-
isTriple
default boolean isTriple()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.
-
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())
-