Class ExtensibleStatementImpl
java.lang.Object
org.eclipse.rdf4j.model.impl.GenericStatement<Resource,IRI,Value>
org.eclipse.rdf4j.sail.extensiblestore.valuefactory.ExtensibleStatementImpl
- All Implemented Interfaces:
Serializable, Statement, ExtensibleStatement
public class ExtensibleStatementImpl
extends GenericStatement<Resource,IRI,Value>
implements ExtensibleStatement
- See Also:
-
Field Summary
Fields inherited from class GenericStatement
context, object, predicate, subject -
Constructor Summary
ConstructorsConstructorDescriptionExtensibleStatementImpl(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.booleanMethods inherited from class GenericStatement
getContext, getObject, getPredicate, getSubject, hashCode, toStringMethods inherited from interface Statement
getContext, getObject, getPredicate, getSubject, hashCode
-
Constructor Details
-
ExtensibleStatementImpl
public ExtensibleStatementImpl(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 classGenericStatement<Resource,IRI, Value> - 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
-