|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.StatementImpl
public class StatementImpl
An implementation of the Statement interface for statements that
don't have an associated context. For statements that do have an associated
context, ContextStatementImpl can be used.
| Constructor Summary | |
|---|---|
StatementImpl(Resource subject,
URI predicate,
Value object)
Creates a new Statement with the supplied subject, predicate and object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compares a statement object to another object. |
Resource |
getContext()
Gets the context of this statement. |
Value |
getObject()
Gets the object of this statement. |
URI |
getPredicate()
Gets the predicate of this statement. |
Resource |
getSubject()
Gets the subject of this statement. |
int |
hashCode()
The hash code of a statement is defined as: 961 * subject.hashCode() + 31 * predicate.hashCode() + object.hashCode(). |
String |
toString()
Gives a String-representation of this Statement that can be used for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatementImpl(Resource subject,
URI predicate,
Value object)
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.| Method Detail |
|---|
public Resource getSubject()
Statement
getSubject in interface Statementpublic URI getPredicate()
Statement
getPredicate in interface Statementpublic Value getObject()
Statement
getObject in interface Statementpublic Resource getContext()
Statement
getContext in interface Statementpublic boolean equals(Object other)
Statement
equals in interface Statementequals in class Objectother - The object to compare this statement to.
Statement and if their subjects, predicates and objects
are equal.public int hashCode()
StatementString.hashCode() is
defined.
hashCode in interface StatementhashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||