Record Class CssSelector.SelectorList
java.lang.Object
java.lang.Record
dev.jcputney.mjml.css.CssSelector.SelectorList
- Record Components:
selectors- the individual selectors in the list
- All Implemented Interfaces:
CssSelector
- Enclosing interface:
CssSelector
public static record CssSelector.SelectorList(List<CssSelector> selectors)
extends Record
implements CssSelector
A comma-separated list of selectors (e.g. "h1, h2, h3").
-
Nested Class Summary
Nested classes/interfaces inherited from interface CssSelector
CssSelector.AttributeSelector, CssSelector.ClassSelector, CssSelector.Combinator, CssSelector.ComplexSelector, CssSelector.CompoundSelector, CssSelector.IdSelector, CssSelector.PseudoClassSelector, CssSelector.PseudoElementSelector, CssSelector.SelectorList, CssSelector.SimpleSelector, CssSelector.TypeSelector, CssSelector.UniversalSelector -
Constructor Summary
ConstructorsConstructorDescriptionSelectorList(List<CssSelector> selectors) Creates an instance of aSelectorListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theselectorsrecord component.Computes the specificity of this selector.toString()Returns a string representation of this record class.
-
Constructor Details
-
SelectorList
Creates an instance of aSelectorListrecord class.- Parameters:
selectors- the value for theselectorsrecord component
-
-
Method Details
-
specificity
Description copied from interface:CssSelectorComputes the specificity of this selector.- Specified by:
specificityin interfaceCssSelector- Returns:
- the computed specificity for this selector
-
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). -
selectors
-