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 aSubjectPredicateContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSet<? extends org.eclipse.rdf4j.model.Resource>contexts()Returns the value of thecontextsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.eclipse.rdf4j.model.IRIReturns the value of thepredicaterecord component.org.eclipse.rdf4j.model.Resourcesubject()Returns the value of thesubjectrecord component.final StringtoString()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 aSubjectPredicateContextrecord class.- Parameters:
subject- the value for thesubjectrecord componentpredicate- the value for thepredicaterecord componentcontexts- the value for thecontextsrecord 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 thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
predicate
public org.eclipse.rdf4j.model.IRI predicate()Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
contexts
Returns the value of thecontextsrecord component.- Returns:
- the value of the
contextsrecord component
-