Record Class PasswordValidationResult.ValidationResultDetail
java.lang.Object
java.lang.Record
ch.tocco.nice2.web.core.api.auth.password.PasswordValidationResult.ValidationResultDetail
- All Implemented Interfaces:
Serializable
- Enclosing class:
PasswordValidationResult
public static record PasswordValidationResult.ValidationResultDetail(String ruleName, TextMessage textMessage)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionValidationResultDetail
(String ruleName, TextMessage textMessage) Creates an instance of aValidationResultDetail
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.ruleName()
Returns the value of theruleName
record component.Returns the value of thetextMessage
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ValidationResultDetail
Creates an instance of aValidationResultDetail
record class.- Parameters:
ruleName
- the value for theruleName
record componenttextMessage
- the value for thetextMessage
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
ruleName
Returns the value of theruleName
record component.- Returns:
- the value of the
ruleName
record component
-
textMessage
Returns the value of thetextMessage
record component.- Returns:
- the value of the
textMessage
record component
-