Record Class YamlNodeComment
java.lang.Object
java.lang.Record
com.github.siroshun09.configapi.format.yaml.comment.YamlNodeComment
- Record Components:
- block- the- YamlBlockComment
- inline- the- YamlInlineComment
- All Implemented Interfaces:
- Comment
public record YamlNodeComment(@Nullable YamlBlockComment block, @Nullable YamlInlineComment inline)
extends Record
implements Comment
- 
Constructor SummaryConstructorsConstructorDescriptionYamlNodeComment(@Nullable YamlBlockComment block, @Nullable YamlInlineComment inline) Creates an instance of aYamlNodeCommentrecord class.
- 
Method SummaryModifier and TypeMethodDescription@Nullable YamlBlockCommentblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable YamlInlineCommentinline()Returns the value of theinlinerecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
YamlNodeCommentpublic YamlNodeComment(@Nullable @Nullable YamlBlockComment block, @Nullable @Nullable YamlInlineComment inline) Creates an instance of aYamlNodeCommentrecord class.
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
blockReturns the value of theblockrecord component.- Returns:
- the value of the blockrecord component
 
- 
inlineReturns the value of theinlinerecord component.- Returns:
- the value of the inlinerecord component
 
 
-