java.lang.Object
javafx.css.Match
- All Implemented Interfaces:
- Comparable<Match>
Used by 
Rule to determine whether or not the selector applies to a
 given object.
 Returned by Selector matches in the event of a match.- Since:
- 9
- 
Method SummaryModifier and TypeMethodDescriptionintCompares this object with the givenMatchobject.com.sun.javafx.css.PseudoClassStateGets the pseudo class state.Gets theSelector.intGets the specificity.
- 
Method Details- 
getSelectorGets theSelector.- Returns:
- the Selector
 
- 
getPseudoClassespublic com.sun.javafx.css.PseudoClassState getPseudoClasses()Gets the pseudo class state.- Returns:
- the pseudo class state
 
- 
getSpecificitypublic int getSpecificity()Gets the specificity.- Returns:
- the specificity
 
- 
compareToCompares this object with the givenMatchobject.Comparison is based on the specificity of the objects. Specificity is calculated based on the id count, the style class count and the pseudoclass count. - Specified by:
- compareToin interface- Comparable<Match>
- Parameters:
- o- the- Matchobject to be compared
- Returns:
- the difference between the specificity of this object and
 the specificity of the given Matchobject
 
 
-