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 frontendmessages- List of messages to be shown in the UIfragments- 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 Summary
ConstructorsConstructorDescriptionUIIncrementDto(List<UICommandDto> commands, List<MessageDto> messages, List<UIFragmentDto> fragments, Object appData, Object appState) Creates an instance of aUIIncrementDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionappData()Returns the value of theappDatarecord component.appState()Returns the value of theappStaterecord component.commands()Returns the value of thecommandsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefragmentsrecord component.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UIIncrementDto
public UIIncrementDto(List<UICommandDto> commands, List<MessageDto> messages, List<UIFragmentDto> fragments, Object appData, Object appState) Creates an instance of aUIIncrementDtorecord class.
-
-
Method Details
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
commands
Returns the value of thecommandsrecord component.- Returns:
- the value of the
commandsrecord component
-
fragments
Returns the value of thefragmentsrecord component.- Returns:
- the value of the
fragmentsrecord component
-
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). -
appData
Returns the value of theappDatarecord component.- Returns:
- the value of the
appDatarecord component
-
appState
Returns the value of theappStaterecord component.- Returns:
- the value of the
appStaterecord component
-