Package org.eclipse.rdf4j.sail.lucene
Class LuceneSailBuffer.ContextAwareStatementImpl
- java.lang.Object
-
- org.eclipse.rdf4j.sail.lucene.LuceneSailBuffer.ContextAwareStatementImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Statement
- Enclosing class:
- LuceneSailBuffer
private static class LuceneSailBuffer.ContextAwareStatementImpl extends java.lang.Object implements Statement
-
-
Field Summary
Fields Modifier and Type Field Description private Statement
delegate
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ContextAwareStatementImpl(Statement delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Compares this statement to another object.Resource
getContext()
Gets the context of this statement.Value
getObject()
Gets the object of this statement.IRI
getPredicate()
Gets the predicate of this statement.Resource
getSubject()
Gets the subject of this statement.int
hashCode()
Computes the hash code of this statement.java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
delegate
private final Statement delegate
-
-
Constructor Detail
-
ContextAwareStatementImpl
public ContextAwareStatementImpl(Statement delegate)
-
-
Method Detail
-
getSubject
public Resource getSubject()
Description copied from interface:Statement
Gets the subject of this statement.- Specified by:
getSubject
in interfaceStatement
- Returns:
- The statement's subject.
-
getPredicate
public IRI getPredicate()
Description copied from interface:Statement
Gets the predicate of this statement.- Specified by:
getPredicate
in interfaceStatement
- Returns:
- The statement's predicate.
-
getObject
public Value getObject()
Description copied from interface:Statement
Gets the object of this statement.
-
getContext
public Resource getContext()
Description copied from interface:Statement
Gets the context of this statement.- Specified by:
getContext
in interfaceStatement
- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
equals
public boolean equals(java.lang.Object obj)
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
-
-