Record Class AsciiDocModel.ImageBlock
java.lang.Object
java.lang.Record
pro.verron.officestamper.asciidoc.AsciiDocModel.ImageBlock
- Record Components:
url- image URLaltText- alternative text
- All Implemented Interfaces:
AsciiDocModel.Block
- Enclosing class:
AsciiDocModel
public static record AsciiDocModel.ImageBlock(String url, String altText)
extends Record
implements AsciiDocModel.Block
Image block.
-
Constructor Summary
ConstructorsConstructorDescriptionImageBlock(String url, String altText) Creates an instance of aImageBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaltText()Returns the value of thealtTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsize()final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ImageBlock
-
-
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). -
url
-
altText
-