Record Class ValidMeta.Field
java.lang.Object
java.lang.Record
ru.tinkoff.kora.validation.annotation.processor.ValidMeta.Field
- Enclosing class:
- ValidMeta
public static record ValidMeta.Field(ValidMeta.Type type, String name, boolean isRecord, boolean isNullable, boolean isPrimitive, List<ValidMeta.Constraint> constraint, List<ValidMeta.Validated> validates)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionField(ValidMeta.Type type, String name, boolean isRecord, boolean isNullable, boolean isPrimitive, List<ValidMeta.Constraint> constraint, List<ValidMeta.Validated> validates) Creates an instance of aFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccessor()Returns the value of theconstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanReturns the value of theisNullablerecord component.booleanReturns the value of theisPrimitiverecord component.booleanisRecord()Returns the value of theisRecordrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of thevalidatesrecord component.
-
Constructor Details
-
Field
public Field(ValidMeta.Type type, String name, boolean isRecord, boolean isNullable, boolean isPrimitive, List<ValidMeta.Constraint> constraint, List<ValidMeta.Validated> validates) Creates an instance of aFieldrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentisRecord- the value for theisRecordrecord componentisNullable- the value for theisNullablerecord componentisPrimitive- the value for theisPrimitiverecord componentconstraint- the value for theconstraintrecord componentvalidates- the value for thevalidatesrecord component
-
-
Method Details
-
isNotNull
public boolean isNotNull() -
accessor
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
isRecord
public boolean isRecord()Returns the value of theisRecordrecord component.- Returns:
- the value of the
isRecordrecord component
-
isNullable
public boolean isNullable()Returns the value of theisNullablerecord component.- Returns:
- the value of the
isNullablerecord component
-
isPrimitive
public boolean isPrimitive()Returns the value of theisPrimitiverecord component.- Returns:
- the value of the
isPrimitiverecord component
-
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
validates
Returns the value of thevalidatesrecord component.- Returns:
- the value of the
validatesrecord component
-