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
    Constructor
    Description
    ConfirmDialogDto(String header, boolean canCancel, boolean canReject, String rejectText, String confirmText, String openedCondition, String confirmActionId, String rejectActionId, String cancelActionId)
    Creates an instance of a ConfirmDialogDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the canCancel record component.
    Returns the value of the cancelActionId record component.
    boolean
    Returns the value of the canReject record component.
    Returns the value of the confirmActionId record component.
    Returns the value of the confirmText record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the header record component.
    Returns the value of the openedCondition record component.
    Returns the value of the rejectActionId record component.
    Returns the value of the rejectText record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ConfirmDialogDto record class.
      Parameters:
      header - the value for the header record component
      canCancel - the value for the canCancel record component
      canReject - the value for the canReject record component
      rejectText - the value for the rejectText record component
      confirmText - the value for the confirmText record component
      openedCondition - the value for the openedCondition record component
      confirmActionId - the value for the confirmActionId record component
      rejectActionId - the value for the rejectActionId record component
      cancelActionId - the value for the cancelActionId record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • header

      public String header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • canCancel

      public boolean canCancel()
      Returns the value of the canCancel record component.
      Returns:
      the value of the canCancel record component
    • canReject

      public boolean canReject()
      Returns the value of the canReject record component.
      Returns:
      the value of the canReject record component
    • rejectText

      public String rejectText()
      Returns the value of the rejectText record component.
      Returns:
      the value of the rejectText record component
    • confirmText

      public String confirmText()
      Returns the value of the confirmText record component.
      Returns:
      the value of the confirmText record component
    • openedCondition

      public String openedCondition()
      Returns the value of the openedCondition record component.
      Returns:
      the value of the openedCondition record component
    • confirmActionId

      public String confirmActionId()
      Returns the value of the confirmActionId record component.
      Returns:
      the value of the confirmActionId record component
    • rejectActionId

      public String rejectActionId()
      Returns the value of the rejectActionId record component.
      Returns:
      the value of the rejectActionId record component
    • cancelActionId

      public String cancelActionId()
      Returns the value of the cancelActionId record component.
      Returns:
      the value of the cancelActionId record component