|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.model.impl.StatementImpl
An implementation of the Statement interface.
| Constructor Summary | |
StatementImpl(Resource subject,
URI predicate,
Value object)
Creates a new Statement with the supplied subject, predicate and object. |
|
| Method Summary | |
int |
compareTo(Object o)
Compares this Statement with the supplied object. |
boolean |
equals(Object other)
Compares a statement object to another object. |
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 follows: (0xFF0000 & subject.hashCode()) | (0x00FF00 & predicate.hashCode()) | (0x0000FF & 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.predicate - The statement's predicate.object - The statement's object.| Method Detail |
public Resource getSubject()
Statement
getSubject in interface Statementpublic URI getPredicate()
Statement
getPredicate in interface Statementpublic Value getObject()
Statement
getObject in interface Statementpublic boolean equals(Object other)
Statement
equals in interface Statementpublic int hashCode()
Statement(0xFF0000 & subject.hashCode()) | (0x00FF00 & predicate.hashCode()) | (0x0000FF & object.hashCode());
hashCode in interface Statementpublic int compareTo(Object o)
compareTo in interface ComparableClassCastException - if o is not of type StatementComparablepublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||