Package dev.jorel.commandapi.config
Record Class CommentedConfigOption<T>
java.lang.Object
java.lang.Record
dev.jorel.commandapi.config.CommentedConfigOption<T>
-
Constructor Summary
ConstructorsConstructorDescriptionCommentedConfigOption(String[] comment, T option) Creates an instance of aCommentedConfigOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionString[]comment()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.option()Returns the value of theoptionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommentedConfigOption
-
-
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.- Returns:
- the value of the
commentrecord component
-
option
Returns the value of theoptionrecord component.- Returns:
- the value of the
optionrecord component
-