Record Class AsciiDocModel.CodeBlock
java.lang.Object
java.lang.Record
pro.verron.officestamper.asciidoc.AsciiDocModel.CodeBlock
- Record Components:
language- languagecontent- code content
- All Implemented Interfaces:
AsciiDocModel.Block
- Enclosing class:
AsciiDocModel
public static record AsciiDocModel.CodeBlock(String language, String content)
extends Record
implements AsciiDocModel.Block
Code block.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.intsize()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CodeBlock
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceAsciiDocModel.Block
-
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). -
language
-
content
-