Class Specificity


  • @Beta
    public class Specificity
    extends java.lang.Object
    Specificity: https://drafts.csswg.org/selectors/#specificity-rules
    • Constructor Summary

      Constructors 
      Constructor Description
      Specificity​(java.lang.Integer a, java.lang.Integer b, java.lang.Integer c)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getA()
      The a component, which represents the number of ID selectors.
      java.lang.Integer getB()
      The b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.
      java.lang.Integer getC()
      The c component, which represents the number of type selectors and pseudo-elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Specificity

        public Specificity​(java.lang.Integer a,
                           java.lang.Integer b,
                           java.lang.Integer c)
    • Method Detail

      • getA

        public java.lang.Integer getA()
        The a component, which represents the number of ID selectors.
      • getB

        public java.lang.Integer getB()
        The b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.
      • getC

        public java.lang.Integer getC()
        The c component, which represents the number of type selectors and pseudo-elements.