Record Class LoginPageContent.Configuration
java.lang.Object
java.lang.Record
ecmwf.common.text.LoginPageContent.Configuration
- Enclosing class:
LoginPageContent
public static record LoginPageContent.Configuration(boolean enabled, List<LoginPageContent.Message> messages)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(boolean enabled, List<LoginPageContent.Message> messages) Creates an instance of aConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmessages()Returns the value of themessagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Configuration
Creates an instance of aConfigurationrecord class.- Parameters:
enabled- the value for theenabledrecord componentmessages- the value for themessagesrecord component
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-