Record Class WebsocketBeans.ErrorData
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.spi.delete.beans.WebsocketBeans.ErrorData
- All Implemented Interfaces:
WebsocketBeans.DeleteActionEvent
- Enclosing class:
WebsocketBeans
public static record WebsocketBeans.ErrorData(@Nullable TextInformationException.TextInformation information, @Nullable List<EntityValidationErrorsBean> validationErrors, WebsocketBeans.UpdateDataType type)
extends Record
implements WebsocketBeans.DeleteActionEvent
-
Constructor Summary
ConstructorsConstructorDescriptionErrorData(@Nullable TextInformationException.TextInformation information, @Nullable List<EntityValidationErrorsBean> validationErrors, WebsocketBeans.UpdateDataType type) Creates an instance of aErrorDatarecord class.ErrorData(TextInformationException.TextInformation information) ErrorData(List<EntityValidationErrorsBean> validationErrors) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable TextInformationException.TextInformationReturns the value of theinformationrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.@Nullable List<EntityValidationErrorsBean> Returns the value of thevalidationErrorsrecord component.
-
Constructor Details
-
ErrorData
-
ErrorData
-
ErrorData
public ErrorData() -
ErrorData
public ErrorData(@Nullable TextInformationException.TextInformation information, @Nullable List<EntityValidationErrorsBean> validationErrors, WebsocketBeans.UpdateDataType type) Creates an instance of aErrorDatarecord class.- Parameters:
information- the value for theinformationrecord componentvalidationErrors- the value for thevalidationErrorsrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
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). -
information
Returns the value of theinformationrecord component.- Returns:
- the value of the
informationrecord component
-
validationErrors
Returns the value of thevalidationErrorsrecord component.- Returns:
- the value of the
validationErrorsrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-