Package org.eclipse.rdf4j.model.impl
Class LinkedHashModel.ModelStatement
- java.lang.Object
-
- org.eclipse.rdf4j.model.impl.GenericStatement<Resource,IRI,Value>
-
- org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelStatement
-
- All Implemented Interfaces:
Serializable,Statement
- Enclosing class:
- LinkedHashModel
public static class LinkedHashModel.ModelStatement extends GenericStatement<Resource,IRI,Value>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.model.impl.GenericStatement
context, object, predicate, subject
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Compares this statement to another object.ResourcegetContext()Gets the context of this statement.ValuegetObject()Gets the object of this statement.IRIgetPredicate()Gets the predicate of this statement.StatementgetStatement()ResourcegetSubject()Gets the subject of this statement.-
Methods inherited from class org.eclipse.rdf4j.model.impl.GenericStatement
hashCode, toString
-
-
-
-
Method Detail
-
getSubject
public Resource getSubject()
Description copied from interface:StatementGets the subject of this statement.- Specified by:
getSubjectin interfaceStatement- Overrides:
getSubjectin classGenericStatement<Resource,IRI,Value>- Returns:
- The statement's subject.
-
getPredicate
public IRI getPredicate()
Description copied from interface:StatementGets the predicate of this statement.- Specified by:
getPredicatein interfaceStatement- Overrides:
getPredicatein classGenericStatement<Resource,IRI,Value>- Returns:
- The statement's predicate.
-
getObject
public Value getObject()
Description copied from interface:StatementGets the object of this statement.
-
getContext
public Resource getContext()
Description copied from interface:StatementGets the context of this statement.- Specified by:
getContextin interfaceStatement- Overrides:
getContextin classGenericStatement<Resource,IRI,Value>- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
equals
public boolean equals(Object other)
Description copied from interface:StatementCompares this statement to another object.- Specified by:
equalsin interfaceStatement- Overrides:
equalsin classGenericStatement<Resource,IRI,Value>- Parameters:
other- the object to compare this statement to- Returns:
trueif the other object is an instance ofStatementand if their subjects, predicates, objects and contexts are equal;falseotherwise
-
getStatement
public Statement getStatement()
-
-