Record Class RuleIndex.Candidate
java.lang.Object
java.lang.Record
org.eclipse.e4.ui.css.core.impl.engine.selector.RuleIndex.Candidate
- Enclosing class:
RuleIndex
public static record RuleIndex.Candidate(Selectors.Selector selector, CSSStyleRuleImpl rule, int order)
extends Record
One selector alternative of a style rule, with its cascade position.
-
Constructor Summary
ConstructorsConstructorDescriptionCandidate(Selectors.Selector selector, CSSStyleRuleImpl rule, int order) Creates an instance of aCandidaterecord 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.intorder()Returns the value of theorderrecord component.rule()Returns the value of therulerecord component.selector()Returns the value of theselectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Candidate
Creates an instance of aCandidaterecord class.- Parameters:
selector- the value for theselectorrecord componentrule- the value for therulerecord componentorder- the value for theorderrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
selector
Returns the value of theselectorrecord component.- Returns:
- the value of the
selectorrecord component
-
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-