Record Class Evaluation
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.evaluation.impl.widgets.Evaluation
-
Constructor Summary
ConstructorDescriptionEvaluation
(String key, String questionnaireLabel, String description, String user, String sourceEntity, boolean readOnly, boolean isFinishable, List<QuestionCategory> questionCategories, String status) Creates an instance of aEvaluation
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
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.boolean
Returns the value of theisFinishable
record component.key()
Returns the value of thekey
record component.Returns the value of thequestionCategories
record component.Returns the value of thequestionnaireLabel
record component.boolean
readOnly()
Returns the value of thereadOnly
record component.Returns the value of thesourceEntity
record component.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.
-
Constructor Details
-
Evaluation
public Evaluation(String key, String questionnaireLabel, String description, String user, String sourceEntity, boolean readOnly, boolean isFinishable, List<QuestionCategory> questionCategories, String status) Creates an instance of aEvaluation
record class.- Parameters:
key
- the value for thekey
record componentquestionnaireLabel
- the value for thequestionnaireLabel
record componentdescription
- the value for thedescription
record componentuser
- the value for theuser
record componentsourceEntity
- the value for thesourceEntity
record componentreadOnly
- the value for thereadOnly
record componentisFinishable
- the value for theisFinishable
record componentquestionCategories
- the value for thequestionCategories
record componentstatus
- the value for thestatus
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
questionnaireLabel
Returns the value of thequestionnaireLabel
record component.- Returns:
- the value of the
questionnaireLabel
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
sourceEntity
Returns the value of thesourceEntity
record component.- Returns:
- the value of the
sourceEntity
record component
-
readOnly
public boolean readOnly()Returns the value of thereadOnly
record component.- Returns:
- the value of the
readOnly
record component
-
isFinishable
public boolean isFinishable()Returns the value of theisFinishable
record component.- Returns:
- the value of the
isFinishable
record component
-
questionCategories
Returns the value of thequestionCategories
record component.- Returns:
- the value of the
questionCategories
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-