Record Class SigninForm
java.lang.Object
java.lang.Record
io.micronaut.views.fields.tck.SigninForm
-
Constructor Summary
ConstructorsConstructorDescriptionSigninForm(String username, String password, boolean rememberMe) Creates an instance of aSigninFormrecord 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.password()Returns the value of thepasswordrecord component.booleanReturns the value of therememberMerecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
SigninForm
Creates an instance of aSigninFormrecord class.- Parameters:
username- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentrememberMe- the value for therememberMerecord component
-
-
Method Details
-
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. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
rememberMe
public boolean rememberMe()Returns the value of therememberMerecord component.- Returns:
- the value of the
rememberMerecord component
-