Package org.eclipse.rdf4j.model.base
Class AbstractStatement
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractStatement
- All Implemented Interfaces:
Serializable
,Statement
Base class for
Statement
, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.model.Statement
getContext, getObject, getPredicate, getSubject
-
Constructor Details
-
AbstractStatement
public AbstractStatement()
-
-
Method Details
-
equals
Description copied from interface:Statement
Compares this statement to another object. -
hashCode
public int hashCode()Description copied from interface:Statement
Computes the hash code of this statement.- Specified by:
hashCode
in interfaceStatement
- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this statement computed as
Objects.hash
(Statement.getSubject()
,Statement.getPredicate()
,Statement.getObject()
,Statement.getContext()
)
-
toString
-