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 boolean
The field for thechanged
record component.private final boolean
The field for theinvalid
record component.private final @Nullable MetaUser.MetaUserOtp
The field for theuserOtp
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
OtpValidation
(boolean changed, boolean invalid, @Nullable MetaUser.MetaUserOtp userOtp) Creates an instance of aOtpValidation
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
changed()
Returns the value of thechanged
record component.final 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.final String
toString()
Returns a string representation of this record class.@Nullable MetaUser.MetaUserOtp
userOtp()
Returns the value of theuserOtp
record component.
-
Field Details
-
changed
private final boolean changedThe field for thechanged
record component. -
invalid
private final boolean invalidThe field for theinvalid
record component. -
userOtp
The field for theuserOtp
record component.
-
-
Constructor Details
-
OtpValidation
Creates an instance of aOtpValidation
record class.- Parameters:
changed
- the value for thechanged
record componentinvalid
- the value for theinvalid
record componentuserOtp
- the value for theuserOtp
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 '=='. -
changed
public boolean changed()Returns the value of thechanged
record component.- Returns:
- the value of the
changed
record component
-
invalid
public boolean invalid()Returns the value of theinvalid
record component.- Returns:
- the value of the
invalid
record component
-
userOtp
Returns the value of theuserOtp
record component.- Returns:
- the value of the
userOtp
record component
-