Record Class PathData.CubicTo
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.svg.PathData.CubicTo
- All Implemented Interfaces:
PathData.Segment
- Enclosing class:
PathData
public static record PathData.CubicTo(double x1, double y1, double x2, double y2, double x, double y)
extends Record
implements PathData.Segment
-
Constructor Summary
ConstructorsConstructorDescriptionCubicTo(double x1, double y1, double x2, double y2, double x, double y) Creates an instance of aCubicTorecord class. -
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.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doublex1()Returns the value of thex1record component.doublex2()Returns the value of thex2record component.doubley()Returns the value of theyrecord component.doubley1()Returns the value of they1record component.doubley2()Returns the value of they2record component.
-
Constructor Details
-
CubicTo
public CubicTo(double x1, double y1, double x2, double y2, double x, double y) Creates an instance of aCubicTorecord class.- Parameters:
x1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record componentx- the value for thexrecord componenty- the value for theyrecord 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 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
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-