Record Class CellBorders
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.node.CellBorders
- Record Components:
top- 上邊right- 右邊bottom- 下邊left- 左邊
-
Constructor Summary
ConstructorsConstructorDescriptionCellBorders(LineStyle top, LineStyle right, LineStyle bottom, LineStyle left) Creates an instance of aCellBordersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CellBordersbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static CellBordersinherit()left()Returns the value of theleftrecord component.static CellBordersnone()overlay(CellBorders override) 各邊獨立繼承;零寬不會被當成未設定。right()Returns the value of therightrecord component.top()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.withBottom(LineStyle line)
-
Constructor Details
-
Method Details
-
inherit
- Returns:
- 全部邊繼承的空覆寫
-
all
- Parameters:
line- 四邊相同的樣式;null 表示各邊繼承- Returns:
- 四邊相同的新覆寫
-
none
- Returns:
- 四邊明確不畫的覆寫
-
withTop
- Parameters:
line- 上邊樣式;null 表示繼承- Returns:
- 新覆寫
-
withRight
- Parameters:
line- 右邊樣式;null 表示繼承- Returns:
- 新覆寫
-
withBottom
- Parameters:
line- 下邊樣式;null 表示繼承- Returns:
- 新覆寫
-
withLeft
- Parameters:
line- 左邊樣式;null 表示繼承- Returns:
- 新覆寫
-
overlay
各邊獨立繼承;零寬不會被當成未設定。- Parameters:
override- 各邊覆寫;null 視同空覆寫- Returns:
- 合併後的新樣式,空覆寫時可回傳自身
-
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). -
top
-
right
-
bottom
-
left
-