Record Class PasswordInputValidationResult.Rejected
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.input.PasswordInputValidationResult.Rejected
- All Implemented Interfaces:
PasswordInputValidationResult
- Enclosing interface:
PasswordInputValidationResult
public static record PasswordInputValidationResult.Rejected(PasswordInputViolation violation)
extends Record
implements PasswordInputValidationResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface PasswordInputValidationResult
PasswordInputValidationResult.Accepted, PasswordInputValidationResult.RejectedModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionRejected(PasswordInputViolation violation) Creates an instance of aRejectedrecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationrecord component.
-
Constructor Details
-
Rejected
Creates an instance of aRejectedrecord class.- Parameters:
violation- the value for theviolationrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
violation
Returns the value of theviolationrecord component.- Returns:
- the value of the
violationrecord component
-