Record Class ReportFonts.Family
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.ReportFonts.Family
- Record Components:
name- 家族名稱regular- 一般字面bold- 粗體字面;空時以一般字面代替italic- 斜體字面;空時以一般字面傾斜合成boldItalic- 粗斜體字面;空時以粗體(或一般)字面傾斜合成
- Enclosing class:
ReportFonts
public static record ReportFonts.Family(String name, List<FontSource> regular, List<FontSource> bold, List<FontSource> italic, List<FontSource> boldItalic)
extends Record
字型家族;每個字面是一條 fallback 鏈,
regular 必填- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionFamily(String name, List<FontSource> regular, List<FontSource> bold, List<FontSource> italic, List<FontSource> boldItalic) Creates an instance of aFamilyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbold()Returns the value of theboldrecord component.Returns the value of theboldItalicrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.italic()Returns the value of theitalicrecord component.name()Returns the value of thenamerecord component.regular()Returns the value of theregularrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Family
public Family(String name, List<FontSource> regular, List<FontSource> bold, List<FontSource> italic, List<FontSource> boldItalic) Creates an instance of aFamilyrecord class.- Parameters:
name- the value for thenamerecord componentregular- the value for theregularrecord componentbold- the value for theboldrecord componentitalic- the value for theitalicrecord componentboldItalic- the value for theboldItalicrecord 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 withObjects::equals(Object,Object). -
name
-
regular
-
bold
-
italic
-
boldItalic
Returns the value of theboldItalicrecord component.- Returns:
- the value of the
boldItalicrecord component
-