Record Class StyleResolver.ResolvedText
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.StyleResolver.ResolvedText
- Enclosing class:
StyleResolver
public static record StyleResolver.ResolvedText(String fontFamily, Length size, FontWeight weight, boolean italic, ReportColor color)
extends Record
完整文字樣式
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedText(String fontFamily, Length size, FontWeight weight, boolean italic, ReportColor color) Creates an instance of aResolvedTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefontFamilyrecord component.final inthashCode()Returns a hash code value for this object.booleanitalic()Returns the value of theitalicrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.weight()Returns the value of theweightrecord component.
-
Constructor Details
-
ResolvedText
public ResolvedText(String fontFamily, Length size, FontWeight weight, boolean italic, ReportColor color) Creates an instance of aResolvedTextrecord class.- Parameters:
fontFamily- the value for thefontFamilyrecord componentsize- the value for thesizerecord componentweight- the value for theweightrecord componentitalic- the value for theitalicrecord componentcolor- the value for thecolorrecord 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. -
fontFamily
Returns the value of thefontFamilyrecord component.- Returns:
- the value of the
fontFamilyrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
weight
Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
italic
public boolean italic()Returns the value of theitalicrecord component.- Returns:
- the value of the
italicrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-