Record Class Box.BorderBox
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.layout.Box.BorderBox
- All Implemented Interfaces:
Box
- Enclosing interface:
Box
-
Nested Class Summary
Nested classes/interfaces inherited from interface Box
Box.BorderBox, Box.FigureBox, Box.ImageBox, Box.RectBox, Box.RuleBox, Box.TextBox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.doublex1()Returns the value of thex1record component.doublex2()Returns the value of thex2record component.doubley1()Returns the value of they1record component.doubley2()Returns the value of they2record component.
-
Constructor Details
-
BorderBox
Creates an instance of aBorderBoxrecord class.- Parameters:
x1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record componentstyle- the value for thestylerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
x1
public double x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public double y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
x2
public double x2()Returns the value of thex2record component.- Returns:
- the value of the
x2record component
-
y2
public double y2()Returns the value of they2record component.- Returns:
- the value of the
y2record component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-