Record Class TextMeasurer.Measured
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.layout.TextMeasurer.Measured
- Record Components:
segments- 片段width- 總寬度(pt)
- Enclosing interface:
TextMeasurer
public static record TextMeasurer.Measured(List<TextMeasurer.Segment> segments, double width)
extends Record
量測結果
-
Constructor Summary
ConstructorsConstructorDescriptionMeasured(List<TextMeasurer.Segment> segments, double width) Creates an instance of aMeasuredrecord 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.segments()Returns the value of thesegmentsrecord component.final StringtoString()Returns a string representation of this record class.doublewidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
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. -
segments
-
width
-