Package io.mateu.dtos
Record Class ConfirmDialogDto
java.lang.Object
java.lang.Record
io.mateu.dtos.ConfirmDialogDto
- All Implemented Interfaces:
ComponentMetadataDto
public record ConfirmDialogDto(String header, boolean canCancel, boolean canReject, String rejectText, String confirmText, String openedCondition, String confirmActionId, String rejectActionId, String cancelActionId)
extends Record
implements ComponentMetadataDto
Metadata for a html element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanCancelrecord component.Returns the value of thecancelActionIdrecord component.booleanReturns the value of thecanRejectrecord component.Returns the value of theconfirmActionIdrecord component.Returns the value of theconfirmTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.Returns the value of theopenedConditionrecord component.Returns the value of therejectActionIdrecord component.Returns the value of therejectTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfirmDialogDto
public ConfirmDialogDto(String header, boolean canCancel, boolean canReject, String rejectText, String confirmText, String openedCondition, String confirmActionId, String rejectActionId, String cancelActionId) Creates an instance of aConfirmDialogDtorecord class.- Parameters:
header- the value for theheaderrecord componentcanCancel- the value for thecanCancelrecord componentcanReject- the value for thecanRejectrecord componentrejectText- the value for therejectTextrecord componentconfirmText- the value for theconfirmTextrecord componentopenedCondition- the value for theopenedConditionrecord componentconfirmActionId- the value for theconfirmActionIdrecord componentrejectActionId- the value for therejectActionIdrecord componentcancelActionId- the value for thecancelActionIdrecord 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 '=='. -
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
canCancel
public boolean canCancel()Returns the value of thecanCancelrecord component.- Returns:
- the value of the
canCancelrecord component
-
canReject
public boolean canReject()Returns the value of thecanRejectrecord component.- Returns:
- the value of the
canRejectrecord component
-
rejectText
Returns the value of therejectTextrecord component.- Returns:
- the value of the
rejectTextrecord component
-
confirmText
Returns the value of theconfirmTextrecord component.- Returns:
- the value of the
confirmTextrecord component
-
openedCondition
Returns the value of theopenedConditionrecord component.- Returns:
- the value of the
openedConditionrecord component
-
confirmActionId
Returns the value of theconfirmActionIdrecord component.- Returns:
- the value of the
confirmActionIdrecord component
-
rejectActionId
Returns the value of therejectActionIdrecord component.- Returns:
- the value of the
rejectActionIdrecord component
-
cancelActionId
Returns the value of thecancelActionIdrecord component.- Returns:
- the value of the
cancelActionIdrecord component
-