java.lang.Object
java.lang.Record
org.xhtmlrenderer.css.value.FontSpecification
public record FontSpecification(float size, IdentValue fontWeight, String[] families, IdentValue fontStyle, IdentValue variant)
extends Record
User: tobe
Date: 2005-jun-23
-
Constructor Summary
ConstructorsConstructorDescriptionFontSpecification(float size, IdentValue fontWeight, String[] families, IdentValue fontStyle, IdentValue variant) Creates an instance of aFontSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.String[]families()Returns the value of thefamiliesrecord component.Returns the value of thefontStylerecord component.Returns the value of thefontWeightrecord component.final inthashCode()Returns a hash code value for this object.floatsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
FontSpecification
public FontSpecification(float size, IdentValue fontWeight, String[] families, IdentValue fontStyle, IdentValue variant) Creates an instance of aFontSpecificationrecord class.- Parameters:
size- the value for thesizerecord componentfontWeight- the value for thefontWeightrecord componentfamilies- the value for thefamiliesrecord componentfontStyle- the value for thefontStylerecord componentvariant- the value for thevariantrecord 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 '=='. -
size
public float size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
fontWeight
Returns the value of thefontWeightrecord component.- Returns:
- the value of the
fontWeightrecord component
-
families
Returns the value of thefamiliesrecord component.- Returns:
- the value of the
familiesrecord component
-
fontStyle
Returns the value of thefontStylerecord component.- Returns:
- the value of the
fontStylerecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-