Package org.eclipse.rdf4j.rio.helpers
Class RDFStarEncodingStatement
java.lang.Object
org.eclipse.rdf4j.rio.helpers.RDFStarEncodingStatement
- All Implemented Interfaces:
Serializable
,Statement
Represents a
Statement
whose subject or object may be an RDF-star triple that will be encoded as a special
IRI value on getSubject()
and getObject()
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this statement to another object.Gets the context of this statement.Gets the object of this statement.Gets the predicate of this statement.Gets the subject of this statement.int
hashCode()
Computes the hash code of this statement.
-
Field Details
-
delegate
-
-
Constructor Details
-
RDFStarEncodingStatement
RDFStarEncodingStatement(Statement delegate)
-
-
Method Details
-
getSubject
Description copied from interface:Statement
Gets the subject of this statement.- Specified by:
getSubject
in interfaceStatement
- Returns:
- The statement's subject.
-
getPredicate
Description copied from interface:Statement
Gets the predicate of this statement.- Specified by:
getPredicate
in interfaceStatement
- Returns:
- The statement's predicate.
-
getObject
Description copied from interface:Statement
Gets the object of this statement. -
getContext
Description copied from interface:Statement
Gets the context of this statement.- Specified by:
getContext
in interfaceStatement
- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
equals
Description copied from interface:Statement
Compares this statement to another object. -
hashCode
public int hashCode()Description copied from interface:Statement
Computes the hash code of this statement.- Specified by:
hashCode
in interfaceStatement
- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this statement computed as
Objects.hash
(Statement.getSubject()
,Statement.getPredicate()
,Statement.getObject()
,Statement.getContext()
)
-