Record Class Implementation.ValidatorContainer
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.extension.Implementation.ValidatorContainer
- Record Components:
annotation- theAnnotationfor which theValidatorshould be registeredvalidator- theValidatorimplementation
- All Implemented Interfaces:
Implementation.ExtensionProvidable, Implementation.ProvidableContainer
- Enclosing class:
Implementation<T extends Implementation.ExtensionProvidable>
public static record Implementation.ValidatorContainer(Class<? extends Annotation> annotation, Validator<?,?> validator)
extends Record
implements Implementation.ProvidableContainer
A container type for providing
Validators.-
Constructor Summary
ConstructorsConstructorDescriptionValidatorContainer(Class<? extends Annotation> annotation, Validator<?, ?> validator) Creates an instance of aValidatorContainerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> Returns the value of theannotationrecord component.final 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.Validator<?, ?> Returns the value of thevalidatorrecord component.
-
Constructor Details
-
ValidatorContainer
Creates an instance of aValidatorContainerrecord class.- Parameters:
annotation- the value for theannotationrecord componentvalidator- the value for thevalidatorrecord 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). -
annotation
Returns the value of theannotationrecord component.- Returns:
- the value of the
annotationrecord component
-
validator
-