Record Class StyleContext.MediaQuery
java.lang.Object
java.lang.Record
dev.jcputney.mjml.context.StyleContext.MediaQuery
- Record Components:
className- the CSS class name for the responsive columnwidthValue- the numeric width valuewidthUnit- the unit for the width value (e.g. "%" or "px")
- Enclosing class:
StyleContext
-
Constructor Summary
ConstructorsConstructorDescriptionMediaQuery(String className, String widthValue, String widthUnit) Creates an instance of aMediaQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thewidthUnitrecord component.Returns the value of thewidthValuerecord component.
-
Constructor Details
-
MediaQuery
Creates an instance of aMediaQueryrecord class.- Parameters:
className- the value for theclassNamerecord componentwidthValue- the value for thewidthValuerecord componentwidthUnit- the value for thewidthUnitrecord 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). -
className
-
widthValue
Returns the value of thewidthValuerecord component.- Returns:
- the value of the
widthValuerecord component
-
widthUnit
-