Package su.onno.ui
Record Class FormValidation
java.lang.Object
java.lang.Record
su.onno.ui.FormValidation
public record FormValidation(String key, Class<? extends FormValidator> validator, List<String> dependencies, long debounceMillis)
extends Record
Resolved metadata for one live form validator.
-
Constructor Summary
ConstructorsConstructorDescriptionFormValidation(String key, Class<? extends FormValidator> validator, List<String> dependencies, long debounceMillis) Creates an instance of aFormValidationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedebounceMillisrecord component.Returns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.Class<? extends FormValidator> Returns the value of thevalidatorrecord component.
-
Constructor Details
-
FormValidation
public FormValidation(String key, Class<? extends FormValidator> validator, List<String> dependencies, long debounceMillis) Creates an instance of aFormValidationrecord class.- Parameters:
key- the value for thekeyrecord componentvalidator- the value for thevalidatorrecord componentdependencies- the value for thedependenciesrecord componentdebounceMillis- the value for thedebounceMillisrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
validator
Returns the value of thevalidatorrecord component.- Returns:
- the value of the
validatorrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
debounceMillis
public long debounceMillis()Returns the value of thedebounceMillisrecord component.- Returns:
- the value of the
debounceMillisrecord component
-