Record Class PathData
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.svg.PathData
使用者座標中的路徑,只含移動、直線、三次貝茲與封閉;其他 SVG 指令在解析時轉換
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionPathData(List<PathData.Segment> segments) Creates an instance of aPathDatarecord 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.booleanisEmpty()segments()Returns the value of thesegmentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PathData
Creates an instance of aPathDatarecord class.- Parameters:
segments- the value for thesegmentsrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
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). -
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-