| org.openrdf.model.Statement
All known Subclasses: org.openrdf.model.impl.StatementImpl,
Statement | public interface Statement extends Serializable(Code) | | An RDF statement, with optional associated context. A statement can have an
associated context in specific cases, for example when fetched from a
repository. The context field does not influence statement equality; a
statement is equal to another statement if the subjects, predicates and
objects are equal.
|
Method Summary | |
public boolean | equals(Object other) Compares a statement object to another object.
Parameters: other - The object to compare this statement to. | public Resource | getContext() Gets the context of this statement. | public Value | getObject() Gets the object of this statement. | public URI | getPredicate() Gets the predicate of this statement. | public Resource | getSubject() Gets the subject of this statement. | public int | hashCode() The hash code of a statement is defined as:
961 * subject.hashCode() + 31 * predicate.hashCode() + object.hashCode(). |
equals | public boolean equals(Object other)(Code) | | Compares a statement object to another object.
Parameters: other - The object to compare this statement to. true if the other object is an instance ofStatement and if their subjects, predicates and objectsare equal. |
getContext | public Resource getContext()(Code) | | Gets the context of this statement.
The statement's context, or null in case of the nullcontext or if not applicable. |
getObject | public Value getObject()(Code) | | Gets the object of this statement.
The statement's object. |
getPredicate | public URI getPredicate()(Code) | | Gets the predicate of this statement.
The statement's predicate. |
getSubject | public Resource getSubject()(Code) | | Gets the subject of this statement.
The statement's subject. |
hashCode | public int hashCode()(Code) | | The hash code of a statement is defined as:
961 * subject.hashCode() + 31 * predicate.hashCode() + object.hashCode().
This is similar to how
String.hashCode String.hashCode() is
defined.
A hash code for the statement. |
|
|