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 aConfigurationBuilderOfFieldDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionelements()
Returns the value of theelements
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefieldElement
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConfigurationBuilderOfFieldDefinition
public ConfigurationBuilderOfFieldDefinition(FieldElement fieldElement, List<ConfigurationBuilderPropertyDefinition> elements) Creates an instance of aConfigurationBuilderOfFieldDefinition
record class.- Parameters:
fieldElement
- the value for thefieldElement
record componentelements
- the value for theelements
record component
-
-
Method Details
-
builderElement
- Specified by:
builderElement
in interfaceConfigurationBuilderDefinition
- Returns:
- The builder element
-
builderType
- Specified by:
builderType
in 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 thefieldElement
record component.- Returns:
- the value of the
fieldElement
record component
-
elements
Returns the value of theelements
record component.- Specified by:
elements
in interfaceConfigurationBuilderDefinition
- Returns:
- the value of the
elements
record component
-