Record Class Figure
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.node.Figure
- Record Components:
id- 選填識別content- 圖形內容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.content()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.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
-
Figure
public Figure(String id, FigureContent content, Length width, Length height, String altText, List<Inline> caption) Creates an instance of aFigurerecord class.- Parameters:
id- the value for theidrecord componentcontent- the value for thecontentrecord 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
-
content
-
width
-
height
-
altText
-
caption
-