Record Class ValidMeta
java.lang.Object
java.lang.Record
ru.tinkoff.kora.validation.annotation.processor.ValidMeta
public record ValidMeta(ValidMeta.Type source, ValidMeta.Validator validator, TypeElement sourceElement, List<ValidMeta.Field> fields)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.squareup.javapoet.ClassNamestatic final com.squareup.javapoet.ClassNamestatic final com.squareup.javapoet.ClassNamestatic final com.squareup.javapoet.ClassNamestatic final com.squareup.javapoet.ClassNamestatic final com.squareup.javapoet.ClassName -
Constructor Summary
ConstructorsConstructorDescriptionValidMeta(ValidMeta.Type source, TypeElement sourceElement, List<ValidMeta.Field> fields) ValidMeta(ValidMeta.Type source, ValidMeta.Validator validator, TypeElement sourceElement, List<ValidMeta.Field> fields) Creates an instance of aValidMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.Returns the value of thesourceElementrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidatorrecord component.
-
Field Details
-
VALID_TYPE
public static final com.squareup.javapoet.ClassName VALID_TYPE -
VALIDATED_BY_TYPE
public static final com.squareup.javapoet.ClassName VALIDATED_BY_TYPE -
CONTEXT_TYPE
public static final com.squareup.javapoet.ClassName CONTEXT_TYPE -
VALIDATOR_TYPE
public static final com.squareup.javapoet.ClassName VALIDATOR_TYPE -
VIOLATION_TYPE
public static final com.squareup.javapoet.ClassName VIOLATION_TYPE -
EXCEPTION_TYPE
public static final com.squareup.javapoet.ClassName EXCEPTION_TYPE
-
-
Constructor Details
-
ValidMeta
-
ValidMeta
public ValidMeta(ValidMeta.Type source, ValidMeta.Validator validator, TypeElement sourceElement, List<ValidMeta.Field> fields) Creates an instance of aValidMetarecord class.- Parameters:
source- the value for thesourcerecord componentvalidator- the value for thevalidatorrecord componentsourceElement- the value for thesourceElementrecord componentfields- the value for thefieldsrecord 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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
validator
Returns the value of thevalidatorrecord component.- Returns:
- the value of the
validatorrecord component
-
sourceElement
Returns the value of thesourceElementrecord component.- Returns:
- the value of the
sourceElementrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-