Record Class Selectors.Adjacent
java.lang.Object
java.lang.Record
org.eclipse.e4.ui.css.core.impl.engine.selector.Selectors.Adjacent
- All Implemented Interfaces:
Selectors.Selector
- Enclosing class:
Selectors
public static record Selectors.Adjacent(Selectors.Selector first, Selectors.Selector second)
extends Record
implements Selectors.Selector
first + second — direct adjacent sibling combinator.-
Constructor Summary
ConstructorsConstructorDescriptionAdjacent(Selectors.Selector first, Selectors.Selector second) Creates an instance of aAdjacentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.second()Returns the value of thesecondrecord component.intCSS specificity contribution of this selector.text()Best-effort textual reproduction of the selector.toString()Returns a string representation of this record class.
-
Constructor Details
-
Adjacent
Creates an instance of aAdjacentrecord class.- Parameters:
first- the value for thefirstrecord componentsecond- the value for thesecondrecord component
-
-
Method Details
-
specificity
public int specificity()Description copied from interface:Selectors.SelectorCSS specificity contribution of this selector.- Specified by:
specificityin interfaceSelectors.Selector
-
text
Description copied from interface:Selectors.SelectorBest-effort textual reproduction of the selector.- Specified by:
textin interfaceSelectors.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). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
second
Returns the value of thesecondrecord component.- Returns:
- the value of the
secondrecord component
-