Record Class EvaluationNodeXmlService.ImportResult
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.qualification.impl.action.structureexport.EvaluationNodeXmlService.ImportResult
- Enclosing class:
EvaluationNodeXmlService
-
Constructor Summary
ConstructorsConstructorDescriptionImportResult(Optional<String> errorMessage, Optional<String> technicalError, Set<PrimaryKey> createdEvaluationNodes) Creates an instance of aImportResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedEvaluationNodesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.booleanfinal inthashCode()Returns a hash code value for this object.booleansuccess(Set<PrimaryKey> createdEvaluationNodes) Returns the value of thetechnicalErrorrecord component.final StringtoString()Returns a string representation of this record class.withErrorMessage(String errorMessage) withTechnicalError(Exception exception) withTechnicalError(String error)
-
Constructor Details
-
ImportResult
public ImportResult(Optional<String> errorMessage, Optional<String> technicalError, Set<PrimaryKey> createdEvaluationNodes) Creates an instance of aImportResultrecord class.- Parameters:
errorMessage- the value for theerrorMessagerecord componenttechnicalError- the value for thetechnicalErrorrecord componentcreatedEvaluationNodes- the value for thecreatedEvaluationNodesrecord component
-
-
Method Details
-
withErrorMessage
-
withTechnicalError
-
withTechnicalError
-
success
-
isSuccess
public boolean isSuccess() -
hasErrorMessage
public boolean hasErrorMessage() -
toString
-
hashCode
-
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). -
errorMessage
-
technicalError
-
createdEvaluationNodes
Returns the value of thecreatedEvaluationNodesrecord component.- Returns:
- the value of the
createdEvaluationNodesrecord component
-