Record Class Changeset.SimpleStatementPattern
java.lang.Object
java.lang.Record
org.eclipse.rdf4j.sail.base.Changeset.SimpleStatementPattern
- Record Components:
allContexts- true if the context is the union of all contexts
- Enclosing class:
Changeset
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleStatementPattern(Resource subject, IRI predicate, Value object, Resource context, boolean allContexts) Creates an instance of aSimpleStatementPatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallContextsrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.object()Returns the value of theobjectrecord component.Returns the value of thepredicaterecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleStatementPattern
public SimpleStatementPattern(Resource subject, IRI predicate, Value object, Resource context, boolean allContexts) Creates an instance of aSimpleStatementPatternrecord class.- Parameters:
subject- the value for thesubjectrecord componentpredicate- the value for thepredicaterecord componentobject- the value for theobjectrecord componentcontext- the value for thecontextrecord componentallContexts- the value for theallContextsrecord component
-
-
Method Details
-
hashCode
-
toString
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
allContexts
public boolean allContexts()Returns the value of theallContextsrecord component.- Returns:
- the value of the
allContextsrecord component
-