Record Class Image
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.node.Image
- Record Components:
id- 選填識別data- 圖片資料width- 選填寬度height- 選填高度altText- 替代文字(必填)caption- 選填圖說
- All Implemented Interfaces:
Block
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaltText()Returns the value of thealtTextrecord component.caption()Returns the value of thecaptionrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
Image
public Image(String id, ImageData data, Length width, Length height, String altText, List<Inline> caption) Creates an instance of aImagerecord class.- Parameters:
id- the value for theidrecord componentdata- the value for thedatarecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentaltText- the value for thealtTextrecord componentcaption- the value for thecaptionrecord component
-
-
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). -
id
-
data
-
width
-
height
-
altText
-
caption
-