org.openanzo.model.impl
Class AnzoStatementImpl
java.lang.Object
org.openrdf.model.impl.StatementImpl
org.openanzo.model.impl.AnzoStatementImpl
- All Implemented Interfaces:
- java.io.Serializable, org.openrdf.model.Statement
public class AnzoStatementImpl
- extends org.openrdf.model.impl.StatementImpl
Anzo extension of StatementImpl.
HashCode is stored in order to save compute time on multiple calls.
Checks that all values are set on creation, and throws exception if not.
- Author:
- Matthew Roy ( mroy@cambridgesemantics.com )
- See Also:
- Serialized Form
|
Constructor Summary |
AnzoStatementImpl(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
Create new AnzoContextStatementImpl with the given values |
|
Method Summary |
boolean |
equals(java.lang.Object otherStmt)
|
int |
hashCode()
|
| Methods inherited from class org.openrdf.model.impl.StatementImpl |
getContext, getObject, getPredicate, getSubject, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AnzoStatementImpl
public AnzoStatementImpl(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
- Create new AnzoContextStatementImpl with the given values
- Parameters:
subj - Subject of statementprop - Property of statementobj - Object of statement
- Throws:
AnzoRuntimeException - if subj,prop, or obj are null
equals
public boolean equals(java.lang.Object otherStmt)
- Specified by:
equals in interface org.openrdf.model.Statement- Overrides:
equals in class org.openrdf.model.impl.StatementImpl
hashCode
public int hashCode()
- Specified by:
hashCode in interface org.openrdf.model.Statement- Overrides:
hashCode in class org.openrdf.model.impl.StatementImpl
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.