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
ConstructorsModifierConstructorDescriptionprivatePasswordValidation(boolean invalid, @Nullable String password) Creates an instance of aPasswordValidationrecord 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.booleaninvalid()Returns the value of theinvalidrecord component.@Nullable Stringpassword()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
invalid
private final boolean invalidThe field for theinvalidrecord component. -
password
The field for thepasswordrecord component.
-
-
Constructor Details
-
PasswordValidation
Creates an instance of aPasswordValidationrecord class.- Parameters:
invalid- the value for theinvalidrecord componentpassword- the value for thepasswordrecord 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 theinvalidrecord component.- Returns:
- the value of the
invalidrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-