Record Class ConfigDocument.Entry
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcore.api.config.format.ConfigDocument.Entry
- All Implemented Interfaces:
ConfigDocument.Node
- Enclosing class:
ConfigDocument
public static record ConfigDocument.Entry(List<String> comment, com.google.gson.JsonElement value)
extends Record
implements ConfigDocument.Node
A value, already encoded by its codec.
-
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.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.com.google.gson.JsonElementvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Entry
-
-
Method Details
-
toString
-
hashCode
-
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). -
comment
Returns the value of thecommentrecord component.- Specified by:
commentin interfaceConfigDocument.Node- Returns:
- the value of the
commentrecord component
-
value
public com.google.gson.JsonElement value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-