Record Class AsciiDocModel.OpenBlock
java.lang.Object
java.lang.Record
pro.verron.officestamper.asciidoc.AsciiDocModel.OpenBlock
- All Implemented Interfaces:
AsciiDocModel.Block
- Enclosing class:
AsciiDocModel
public static record AsciiDocModel.OpenBlock(List<String> header, List<AsciiDocModel.Block> content)
extends Record
implements AsciiDocModel.Block
-
Constructor Summary
ConstructorsConstructorDescriptionOpenBlock(List<String> header, List<AsciiDocModel.Block> content) Creates an instance of aOpenBlockrecord class. -
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.header()Returns the value of theheaderrecord component.intsize()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenBlock
Creates an instance of aOpenBlockrecord class.- Parameters:
header- the value for theheaderrecord componentcontent- the value for thecontentrecord component
-
-
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). -
header
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-