public class SpecificityHelper
extends java.lang.Object
The specificity is divided in four parts (defined by CSS2 specification).
In this implementation, each number is stored on a byte in a integer.
Modifier and Type | Field and Description |
---|---|
static int |
A_SHIFT
The a number shift in the integer.
|
static int |
B_SHIFT
The b number shift in the integer.
|
static int |
C_SHIFT
The c number shift in the integer.
|
static int |
D_SHIFT
The d number shift in the integer.
|
Modifier and Type | Method and Description |
---|---|
static int |
getSpecificity(int a,
int b,
int c,
int d)
Computes the specificity for the given four numbers a, b, c and d.
|
public static final int A_SHIFT
public static final int B_SHIFT
public static final int C_SHIFT
public static final int D_SHIFT