public class ExtensibleContextStatement extends ContextStatement implements ExtensibleStatement
Constructor and Description |
---|
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.
|
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, toString
getObject, getPredicate, getSubject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContext, getObject, getPredicate, getSubject
public ExtensibleContextStatement(Resource subject, IRI predicate, Value object, Resource context, boolean inferred)
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.public boolean isInferred()
isInferred
in interface ExtensibleStatement
public boolean equals(Object o)
Statement
equals
in interface Statement
equals
in class SimpleStatement
o
- The object to compare this statement to.Statement
and if their subjects, predicates,
objects and contexts are equal.public int hashCode()
Statement
hashCode
in interface Statement
hashCode
in class SimpleStatement
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.