Record Class SubjectPredicateContext
java.lang.Object
java.lang.Record
cz.cvut.kbss.ontodriver.rdf4j.connector.SubjectPredicateContext
public record SubjectPredicateContext(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, Set<? extends org.eclipse.rdf4j.model.Resource> contexts)
extends Record
A combination of statement subject, predicate and context(s).
It is used to indicate values of properties to remove.
-
Constructor Summary
ConstructorsConstructorDescriptionSubjectPredicateContext
(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, Set<? extends org.eclipse.rdf4j.model.Resource> contexts) Creates an instance of aSubjectPredicateContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionSet<? extends org.eclipse.rdf4j.model.Resource>
contexts()
Returns the value of thecontexts
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.eclipse.rdf4j.model.IRI
Returns the value of thepredicate
record component.org.eclipse.rdf4j.model.Resource
subject()
Returns the value of thesubject
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SubjectPredicateContext
public SubjectPredicateContext(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, Set<? extends org.eclipse.rdf4j.model.Resource> contexts) Creates an instance of aSubjectPredicateContext
record class.- Parameters:
subject
- the value for thesubject
record componentpredicate
- the value for thepredicate
record componentcontexts
- the value for thecontexts
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
subject
public org.eclipse.rdf4j.model.Resource subject()Returns the value of thesubject
record component.- Returns:
- the value of the
subject
record component
-
predicate
public org.eclipse.rdf4j.model.IRI predicate()Returns the value of thepredicate
record component.- Returns:
- the value of the
predicate
record component
-
contexts
Returns the value of thecontexts
record component.- Returns:
- the value of the
contexts
record component
-