Record Class OpenHtmlToPdfAConverter.Font
java.lang.Object
java.lang.Record
org.projecthusky.fhir.emed.ch.epr.narrative.pdf.OpenHtmlToPdfAConverter.Font
- Enclosing class:
- OpenHtmlToPdfAConverter
public static record OpenHtmlToPdfAConverter.Font(String family, int weight, com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle style, Callable<InputStream> inputStream)
extends Record
Record of a font declaration.
-
Constructor Summary
ConstructorsConstructorDescriptionFont(String family, int weight, com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle style, Callable<InputStream> inputStream) Creates an instance of aFontrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinputStreamrecord component.com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStylestyle()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.intweight()Returns the value of theweightrecord component.
-
Constructor Details
-
Font
public Font(String family, int weight, com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle style, Callable<InputStream> inputStream) Creates an instance of aFontrecord class.- Parameters:
family- the value for thefamilyrecord componentweight- the value for theweightrecord componentstyle- the value for thestylerecord componentinputStream- the value for theinputStreamrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
family
Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-
weight
public int weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
style
public com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle style()Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
inputStream
Returns the value of theinputStreamrecord component.- Returns:
- the value of the
inputStreamrecord component
-