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
ConstructorDescriptionFont
(String family, int weight, com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle style, Callable<InputStream> inputStream) Creates an instance of aFont
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.family()
Returns the value of thefamily
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinputStream
record component.com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle
style()
Returns the value of thestyle
record component.final String
toString()
Returns a string representation of this record class.int
weight()
Returns the value of theweight
record component.
-
Constructor Details
-
Font
public Font(String family, int weight, com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle style, Callable<InputStream> inputStream) Creates an instance of aFont
record class.- Parameters:
family
- the value for thefamily
record componentweight
- the value for theweight
record componentstyle
- the value for thestyle
record componentinputStream
- the value for theinputStream
record 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 thefamily
record component.- Returns:
- the value of the
family
record component
-
weight
public int weight()Returns the value of theweight
record component.- Returns:
- the value of the
weight
record component
-
style
public com.openhtmltopdf.outputdevice.helper.BaseRendererBuilder.FontStyle style()Returns the value of thestyle
record component.- Returns:
- the value of the
style
record component
-
inputStream
Returns the value of theinputStream
record component.- Returns:
- the value of the
inputStream
record component
-