Package ch.rswk.meta.engine
Record Class UserService.PasswordValidation
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.PasswordValidation
- Enclosing class:
UserService
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PasswordValidation
(boolean invalid, @Nullable String password) Creates an instance of aPasswordValidation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
invalid()
Returns the value of theinvalid
record component.@Nullable String
password()
Returns the value of thepassword
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
invalid
private final boolean invalidThe field for theinvalid
record component. -
password
The field for thepassword
record component.
-
-
Constructor Details
-
PasswordValidation
Creates an instance of aPasswordValidation
record class.- Parameters:
invalid
- the value for theinvalid
record componentpassword
- the value for thepassword
record 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 '=='. -
invalid
public boolean invalid()Returns the value of theinvalid
record component.- Returns:
- the value of the
invalid
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-