Package io.mateu.dtos

Record Class UIIncrementDto

java.lang.Object
java.lang.Record
io.mateu.dtos.UIIncrementDto
Record Components:
commands - List of command to run in the frontend
messages - List of messages to be shown in the UI
fragments - List of new UI fragments

public record UIIncrementDto(List<UICommandDto> commands, List<MessageDto> messages, List<UIFragmentDto> fragments, Object appData, Object appState) extends Record
UI increment. Components to be added / replacements / actions to run
  • Constructor Details

    • UIIncrementDto

      public UIIncrementDto(List<UICommandDto> commands, List<MessageDto> messages, List<UIFragmentDto> fragments, Object appData, Object appState)
      Creates an instance of a UIIncrementDto record class.
      Parameters:
      commands - the value for the commands record component
      messages - the value for the messages record component
      fragments - the value for the fragments record component
      appData - the value for the appData record component
      appState - the value for the appState record component
  • Method Details

    • messages

      public List<MessageDto> messages()
      Returns the value of the messages record component.
      Returns:
      the value of the messages record component
    • commands

      public List<UICommandDto> commands()
      Returns the value of the commands record component.
      Returns:
      the value of the commands record component
    • fragments

      public List<UIFragmentDto> fragments()
      Returns the value of the fragments record component.
      Returns:
      the value of the fragments record component
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • appData

      public Object appData()
      Returns the value of the appData record component.
      Returns:
      the value of the appData record component
    • appState

      public Object appState()
      Returns the value of the appState record component.
      Returns:
      the value of the appState record component