Record Class ConfigMapEntry
java.lang.Object
java.lang.Record
org.apache.juneau.config.internal.ConfigMapEntry
- Record Components:
rawLine- The raw line this entry was parsed from, ornull if the entry was created programmatically.key- The name of this entry.value- The raw value of this entry.comment- The same-line comment of this entry, ornull if it has no comment.modifiers- The modifiers for this entry, ornull if it has no modifiers.preLines- The pre-lines of this entry as an unmodifiable list.
public record ConfigMapEntry(String rawLine, String key, String value, String comment, String modifiers, List<String> preLines)
extends Record
Represents a single entry in a configuration.
This is a read-only object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the same-line comment of this entry.getKey()Returns the name of this entry.Returns the modifiers for this entry.Returns the pre-lines of this entry.getValue()Returns the raw value of this entry.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of themodifiersrecord component.preLines()Returns the value of thepreLinesrecord component.rawLine()Returns the value of therawLinerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
getComment
Returns the same-line comment of this entry.- Returns:
- The same-line comment of this entry, or
null if it has no comment.
-
getKey
Returns the name of this entry.- Returns:
- The name of this entry.
-
getModifiers
Returns the modifiers for this entry.- Returns:
- The modifiers for this entry, or
null if it has no modifiers.
-
getPreLines
Returns the pre-lines of this entry.- Returns:
- The pre-lines of this entry as an unmodifiable list.
-
getValue
Returns the raw value of this entry.- Returns:
- The raw value of this entry.
-
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
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). -
rawLine
Returns the value of therawLinerecord component.- Returns:
- the value of the
rawLinerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
modifiers
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-
preLines
Returns the value of thepreLinesrecord component.- Returns:
- the value of the
preLinesrecord component
-