Package com.vaadin.flow.server.dau
Record Class EnforcementNotificationMessages
java.lang.Object
java.lang.Record
com.vaadin.flow.server.dau.EnforcementNotificationMessages
- Record Components:
caption
- the caption to show in an enforcement notification, not null.message
- the message to show in an enforcement notification, not null.details
-url
- the URL the user will be redirected to after dismissing an enforcement message.
- All Implemented Interfaces:
Serializable
public record EnforcementNotificationMessages(String caption, String message, String details, String url)
extends Record
implements Serializable
Contains the system messages used to notify the user about various critical
situations that can occur.
- Since:
- 24.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnforcementNotificationMessages
Default enforcement messages. -
Constructor Summary
ConstructorsConstructorDescriptionEnforcementNotificationMessages
(String caption, String message, String details, String url) Creates an instance of aEnforcementNotificationMessages
record class. -
Method Summary
Modifier and TypeMethodDescriptioncaption()
Returns the value of thecaption
record component.details()
Returns the value of thedetails
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.
-
Field Details
-
DEFAULT
Default enforcement messages.
-
-
Constructor Details
-
EnforcementNotificationMessages
Creates an instance of aEnforcementNotificationMessages
record class.
-
-
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)
. -
caption
Returns the value of thecaption
record component.- Returns:
- the value of the
caption
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
details
Returns the value of thedetails
record component.- Returns:
- the value of the
details
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-