Record Class ConfigurationSection
java.lang.Object
java.lang.Record
com.github.joschi.jadconfig.documentation.printers.ConfigurationSection
public record ConfigurationSection(String heading, String description, List<ConfigurationSection> sections, List<ConfigurationEntry> entries)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationSection(String heading, String description, List<ConfigurationSection> sections, List<ConfigurationEntry> entries) Creates an instance of aConfigurationSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanheading()Returns the value of theheadingrecord component.sections()Returns the value of thesectionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigurationSection
public ConfigurationSection(String heading, String description, List<ConfigurationSection> sections, List<ConfigurationEntry> entries) Creates an instance of aConfigurationSectionrecord class.- Parameters:
heading- the value for theheadingrecord componentdescription- the value for thedescriptionrecord componentsections- the value for thesectionsrecord componententries- the value for theentriesrecord component
-
-
Method Details
-
hasPriority
public boolean hasPriority() -
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). -
heading
Returns the value of theheadingrecord component.- Returns:
- the value of the
headingrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
sections
Returns the value of thesectionsrecord component.- Returns:
- the value of the
sectionsrecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-