Record Class ConfigurationBuilderOfFieldDefinition
java.lang.Object
java.lang.Record
io.micronaut.inject.configuration.builder.ConfigurationBuilderOfFieldDefinition
- Record Components:
fieldElement- The field element used as the basis for the configuration builder.elements- The list of configuration builder element definitions associated with the field.
- All Implemented Interfaces:
ConfigurationBuilderDefinition
@Internal
public record ConfigurationBuilderOfFieldDefinition(FieldElement fieldElement, List<ConfigurationBuilderPropertyDefinition> elements)
extends Record
implements ConfigurationBuilderDefinition
A record implementation of the
ConfigurationBuilderDefinition interface,
representing the definition of configuration builder elements based on a field.
This class is utilized for associating configuration elements with a field element.
It encapsulates a FieldElement to represent the field and a list of
ConfigurationBuilderPropertyDefinition that define individual configuration
elements related to the builder.
- Since:
- 4.10
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationBuilderOfFieldDefinition(FieldElement fieldElement, List<ConfigurationBuilderPropertyDefinition> elements) Creates an instance of aConfigurationBuilderOfFieldDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionelements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldElementrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigurationBuilderOfFieldDefinition
public ConfigurationBuilderOfFieldDefinition(FieldElement fieldElement, List<ConfigurationBuilderPropertyDefinition> elements) Creates an instance of aConfigurationBuilderOfFieldDefinitionrecord class.- Parameters:
fieldElement- the value for thefieldElementrecord componentelements- the value for theelementsrecord component
-
-
Method Details
-
builderElement
- Specified by:
builderElementin interfaceConfigurationBuilderDefinition- Returns:
- The builder element
-
builderType
- Specified by:
builderTypein interfaceConfigurationBuilderDefinition- Returns:
- The builder type
-
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). -
fieldElement
Returns the value of thefieldElementrecord component.- Returns:
- the value of the
fieldElementrecord component
-
elements
Returns the value of theelementsrecord component.- Specified by:
elementsin interfaceConfigurationBuilderDefinition- Returns:
- the value of the
elementsrecord component
-