Class CssSelectorNode.Specificity
- java.lang.Object
-
- com.google.common.css.compiler.ast.CssSelectorNode.Specificity
-
- All Implemented Interfaces:
java.lang.Comparable<CssSelectorNode.Specificity>
- Enclosing class:
- CssSelectorNode
public static class CssSelectorNode.Specificity extends java.lang.Object implements java.lang.Comparable<CssSelectorNode.Specificity>
The specifity of a selector is used to select among rules with the same importance and origin. It is calculated as specified at http://www.w3.org/TR/CSS2/cascade.html#specificity.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CssSelectorNode.Specificity other)booleanequals(java.lang.Object object)inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(CssSelectorNode.Specificity other)
- Specified by:
compareToin interfacejava.lang.Comparable<CssSelectorNode.Specificity>
-
equals
public boolean equals(@Nullable java.lang.Object object)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-