Record Class Evaluation
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.evaluation.impl.widgets.Evaluation
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluation(String key, String questionnaireLabel, String description, String user, String sourceEntity, boolean readOnly, boolean isFinishable, List<QuestionCategory> questionCategories, String status) Creates an instance of aEvaluationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisFinishablerecord component.key()Returns the value of thekeyrecord component.Returns the value of thequestionCategoriesrecord component.Returns the value of thequestionnaireLabelrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.Returns the value of thesourceEntityrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord 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 aEvaluationrecord class.- Parameters:
key- the value for thekeyrecord componentquestionnaireLabel- the value for thequestionnaireLabelrecord componentdescription- the value for thedescriptionrecord componentuser- the value for theuserrecord componentsourceEntity- the value for thesourceEntityrecord componentreadOnly- the value for thereadOnlyrecord componentisFinishable- the value for theisFinishablerecord componentquestionCategories- the value for thequestionCategoriesrecord componentstatus- the value for thestatusrecord 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 thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
questionnaireLabel
Returns the value of thequestionnaireLabelrecord component.- Returns:
- the value of the
questionnaireLabelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
sourceEntity
Returns the value of thesourceEntityrecord component.- Returns:
- the value of the
sourceEntityrecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
isFinishable
public boolean isFinishable()Returns the value of theisFinishablerecord component.- Returns:
- the value of the
isFinishablerecord component
-
questionCategories
Returns the value of thequestionCategoriesrecord component.- Returns:
- the value of the
questionCategoriesrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-