Record Class PatternInstance
java.lang.Object
java.lang.Record
cz.vse.swoe.ontodeside.patomat2.model.PatternInstance
-
Constructor Summary
ConstructorsConstructorDescriptionPatternInstance(int id, Pattern pattern, PatternMatch match, String sparqlInsert, String sparqlDelete, List<NewEntity> newEntities) PatternInstance(int id, Pattern pattern, PatternMatch match, String sparqlInsert, String sparqlDelete, List<NewEntity> newEntities, Integer likertScore) Creates an instance of aPatternInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.Returns the value of thelikertScorerecord component.match()Returns the value of thematchrecord component.Returns the value of thenewEntitiesrecord component.pattern()Returns the value of thepatternrecord component.Returns the value of thesparqlDeleterecord component.Returns the value of thesparqlInsertrecord component.final StringtoString()Returns a string representation of this record class.withLikertScore(int likertScore) withNewEntities(List<NewEntity> newEntities)
-
Constructor Details
-
PatternInstance
-
PatternInstance
public PatternInstance(int id, Pattern pattern, PatternMatch match, String sparqlInsert, String sparqlDelete, List<NewEntity> newEntities, Integer likertScore) Creates an instance of aPatternInstancerecord class.- Parameters:
id- the value for theidrecord componentpattern- the value for thepatternrecord componentmatch- the value for thematchrecord componentsparqlInsert- the value for thesparqlInsertrecord componentsparqlDelete- the value for thesparqlDeleterecord componentnewEntities- the value for thenewEntitiesrecord componentlikertScore- the value for thelikertScorerecord component
-
-
Method Details
-
deepCopy
-
withLikertScore
-
patternName
-
hasDelete
public boolean hasDelete() -
withNewEntities
-
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 theidrecord component.- Returns:
- the value of the
idrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
match
Returns the value of thematchrecord component.- Returns:
- the value of the
matchrecord component
-
sparqlInsert
Returns the value of thesparqlInsertrecord component.- Returns:
- the value of the
sparqlInsertrecord component
-
sparqlDelete
Returns the value of thesparqlDeleterecord component.- Returns:
- the value of the
sparqlDeleterecord component
-
newEntities
Returns the value of thenewEntitiesrecord component.- Returns:
- the value of the
newEntitiesrecord component
-
likertScore
Returns the value of thelikertScorerecord component.- Returns:
- the value of the
likertScorerecord component
-