Package org.eclipse.rdf4j.model.base
Class AbstractStatement
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractStatement
-
- All Implemented Interfaces:
java.io.Serializable
,Statement
- Direct Known Subclasses:
AbstractValueFactory.GenericStatement
,SimpleStatement
public abstract class AbstractStatement extends java.lang.Object implements Statement
Base class forStatement
, offering common functionality.- Since:
- 3.5.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description AbstractStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Compares this statement to another object.int
hashCode()
Computes the hash code of this statement.java.lang.String
toString()
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
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 classjava.lang.Object
- Returns:
- a hash code for this statement computed as
Objects.hash
(Statement.getSubject()
,Statement.getPredicate()
,Statement.getObject()
,Statement.getContext()
)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-