Class ExtensibleContextStatement
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractStatement
org.eclipse.rdf4j.model.impl.SimpleStatement
org.eclipse.rdf4j.model.impl.ContextStatement
org.eclipse.rdf4j.sail.extensiblestore.valuefactory.ExtensibleContextStatement
- All Implemented Interfaces:
Serializable,Statement,ExtensibleStatement
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExtensibleContextStatement(Resource subject, IRI predicate, Value object, Resource context, boolean inferred) Creates a new Statement with the supplied subject, predicate and object for the specified associated context. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this statement to another object.inthashCode()Computes the hash code of this statement.booleanMethods inherited from class org.eclipse.rdf4j.model.impl.ContextStatement
exactSameContext, getContext, toStringMethods inherited from class org.eclipse.rdf4j.model.impl.SimpleStatement
exactSameObject, exactSamePredicate, exactSameSubject, getObject, getPredicate, getSubjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.model.Statement
getContext, getObject, getPredicate, getSubject
-
Constructor Details
-
ExtensibleContextStatement
public ExtensibleContextStatement(Resource subject, IRI predicate, Value object, Resource context, boolean inferred) Creates a new Statement with the supplied subject, predicate and object for the specified associated context.- Parameters:
subject- The statement's subject, must not be null.predicate- The statement's predicate, must not be null.object- The statement's object, must not be null.context- The statement's context, null to indicate no context is associated.
-
-
Method Details
-
isInferred
public boolean isInferred()- Specified by:
isInferredin interfaceExtensibleStatement
-
equals
Description copied from interface:StatementCompares this statement to another object.- Specified by:
equalsin interfaceStatement- Overrides:
equalsin classAbstractStatement- Parameters:
o- the object to compare this statement to- Returns:
trueif the other object is an instance ofStatementand if their subjects, predicates, objects and contexts are equal;falseotherwise
-
hashCode
public int hashCode()Description copied from interface:StatementComputes the hash code of this statement.- Specified by:
hashCodein interfaceStatement- Overrides:
hashCodein classAbstractStatement- Returns:
- a hash code for this statement computed as
Objects.hash(Statement.getSubject(),Statement.getPredicate(),Statement.getObject(),Statement.getContext())
-