Record Class EventTreeXmlService.ImportResult
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.impl.actions.treeexport.EventTreeXmlService.ImportResult
- Enclosing class:
EventTreeXmlService
public static record EventTreeXmlService.ImportResult(List<EventTree> trees, Set<TextMessage> errorMessages)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionImportResult(List<EventTree> trees, Set<TextMessage> errorMessages) Creates an instance of aImportResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagesrecord component.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.trees()Returns the value of thetreesrecord component.
-
Constructor Details
-
ImportResult
Creates an instance of aImportResultrecord class.- Parameters:
trees- the value for thetreesrecord componenterrorMessages- the value for theerrorMessagesrecord component
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
trees
Returns the value of thetreesrecord component.- Returns:
- the value of the
treesrecord component
-
errorMessages
Returns the value of theerrorMessagesrecord component.- Returns:
- the value of the
errorMessagesrecord component
-