Record Class PatternInstance
java.lang.Object
java.lang.Record
cz.vse.swoe.ontodeside.patomat2.model.PatternInstance
-
Constructor Summary
ConstructorsConstructorDescriptionPatternInstance
(int id, String patternName, PatternMatch match, String sparqlInsert, String sparqlDelete, List<NewEntity> newEntities) Creates an instance of aPatternInstance
record class. -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()
final boolean
Indicates whether some other object is "equal to" this one.boolean
final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.match()
Returns the value of thematch
record component.Returns the value of thenewEntities
record component.Returns the value of thepatternName
record component.Returns the value of thesparqlDelete
record component.Returns the value of thesparqlInsert
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PatternInstance
public PatternInstance(int id, String patternName, PatternMatch match, String sparqlInsert, String sparqlDelete, List<NewEntity> newEntities) Creates an instance of aPatternInstance
record class.- Parameters:
id
- the value for theid
record componentpatternName
- the value for thepatternName
record componentmatch
- the value for thematch
record componentsparqlInsert
- the value for thesparqlInsert
record componentsparqlDelete
- the value for thesparqlDelete
record componentnewEntities
- the value for thenewEntities
record component
-
-
Method Details
-
deepCopy
-
hasDelete
public boolean hasDelete() -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
patternName
Returns the value of thepatternName
record component.- Returns:
- the value of the
patternName
record component
-
match
Returns the value of thematch
record component.- Returns:
- the value of the
match
record component
-
sparqlInsert
Returns the value of thesparqlInsert
record component.- Returns:
- the value of the
sparqlInsert
record component
-
sparqlDelete
Returns the value of thesparqlDelete
record component.- Returns:
- the value of the
sparqlDelete
record component
-
newEntities
Returns the value of thenewEntities
record component.- Returns:
- the value of the
newEntities
record component
-