Package ch.rswk.meta.engine
Record Class UserService.OtpValidation
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.OtpValidation
- Enclosing class:
UserService
private static record UserService.OtpValidation(boolean changed, boolean invalid, @Nullable MetaUser.MetaUserOtp userOtp)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thechangedrecord component.private final booleanThe field for theinvalidrecord component.private final @Nullable MetaUser.MetaUserOtpThe field for theuserOtprecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOtpValidation(boolean changed, boolean invalid, @Nullable MetaUser.MetaUserOtp userOtp) Creates an instance of aOtpValidationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanchanged()Returns the value of thechangedrecord component.final 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.final StringtoString()Returns a string representation of this record class.@Nullable MetaUser.MetaUserOtpuserOtp()Returns the value of theuserOtprecord component.
-
Field Details
-
changed
private final boolean changedThe field for thechangedrecord component. -
invalid
private final boolean invalidThe field for theinvalidrecord component. -
userOtp
The field for theuserOtprecord component.
-
-
Constructor Details
-
OtpValidation
Creates an instance of aOtpValidationrecord class.- Parameters:
changed- the value for thechangedrecord componentinvalid- the value for theinvalidrecord componentuserOtp- the value for theuserOtprecord 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 '=='. -
changed
public boolean changed()Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
invalid
public boolean invalid()Returns the value of theinvalidrecord component.- Returns:
- the value of the
invalidrecord component
-
userOtp
Returns the value of theuserOtprecord component.- Returns:
- the value of the
userOtprecord component
-