public class ExtensibleStatementImpl extends SimpleStatement implements ExtensibleStatement
| Constructor and Description |
|---|
ExtensibleStatementImpl(Resource subject,
IRI predicate,
Value object,
boolean inferred)
Creates a new Statement with the supplied subject, predicate and object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares a statement object to another object.
|
int |
hashCode()
The hash code of a statement.
|
boolean |
isInferred() |
getContext, getObject, getPredicate, getSubject, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContext, getObject, getPredicate, getSubjectpublic ExtensibleStatementImpl(Resource subject, IRI predicate, Value object, boolean inferred)
Note that creating SimpleStatement objects directly via this constructor is not the recommended approach.
Instead, use a ValueFactory (obtained from your repository or by using
SimpleValueFactory.getInstance()) to create new Statement objects.
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.AbstractValueFactory.createStatement(Resource, IRI, Value)public boolean isInferred()
isInferred in interface ExtensibleStatementpublic boolean equals(Object o)
Statementequals in interface Statementequals in class SimpleStatemento - The object to compare this statement to.Statement and if their subjects, predicates,
objects and contexts are equal.public int hashCode()
StatementhashCode in interface StatementhashCode in class SimpleStatementCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.