Record Class ConfigUtils.ConfigField
java.lang.Object
java.lang.Record
ru.tinkoff.kora.config.annotation.processor.ConfigUtils.ConfigField
- Enclosing class:
- ConfigUtils
-
Constructor Summary
ConstructorsConstructorDescriptionConfigField(String name, com.squareup.javapoet.TypeName typeName, boolean isNullable, boolean hasDefault, ru.tinkoff.kora.annotation.processor.common.CommonUtils.MappingData mapping) Creates an instance of aConfigFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasDefaultrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisNullablerecord component.ru.tinkoff.kora.annotation.processor.common.CommonUtils.MappingDatamapping()Returns the value of themappingrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.com.squareup.javapoet.TypeNametypeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
ConfigField
public ConfigField(String name, com.squareup.javapoet.TypeName typeName, boolean isNullable, boolean hasDefault, @Nullable ru.tinkoff.kora.annotation.processor.common.CommonUtils.MappingData mapping) Creates an instance of aConfigFieldrecord class.- Parameters:
name- the value for thenamerecord componenttypeName- the value for thetypeNamerecord componentisNullable- the value for theisNullablerecord componenthasDefault- the value for thehasDefaultrecord componentmapping- the value for themappingrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
typeName
public com.squareup.javapoet.TypeName typeName()Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
isNullable
public boolean isNullable()Returns the value of theisNullablerecord component.- Returns:
- the value of the
isNullablerecord component
-
hasDefault
public boolean hasDefault()Returns the value of thehasDefaultrecord component.- Returns:
- the value of the
hasDefaultrecord component
-
mapping
@Nullable public ru.tinkoff.kora.annotation.processor.common.CommonUtils.MappingData mapping()Returns the value of themappingrecord component.- Returns:
- the value of the
mappingrecord component
-