Module no.ntnu.principes
Record Class OpenModalEvent.ModalPayload
java.lang.Object
java.lang.Record
no.ntnu.principes.event.navigation.OpenModalEvent.ModalPayload
- Record Components:
route- the target route or identifier for the modal (e.g., the path to the modal component)params- a map of key-value pairs representing additional parameters for the modal (e.g., context data or configuration options)
- Enclosing class:
OpenModalEvent
public static record OpenModalEvent.ModalPayload(String route, Map<String,Object> params)
extends Record
Represents the payload data required to open a modal in the application.
This payload contains information necessary for the modal, including the
target route and additional parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionModalPayload(String route, Map<String, Object> params) Creates an instance of aModalPayloadrecord class. -
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.params()Returns the value of theparamsrecord component.route()Returns the value of therouterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-