public final class StyleCache extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static StyleCache |
EMPTY_STYLECACHE |
private static Storage<StyleCache> |
internPool |
private static int |
PLAIN |
private static int |
SELECTED |
private DividedScale<StyleElementList>[] |
states |
Modifier | Constructor and Description |
---|---|
private |
StyleCache() |
private |
StyleCache(StyleCache sc) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
private int |
getIndex(boolean selected) |
static int |
getInternPoolSize()
Get the size of the intern pool.
|
Pair<StyleElementList,Range> |
getWithRange(double scale,
boolean selected) |
int |
hashCode() |
private StyleCache |
intern()
Like String.intern() (reduce memory consumption).
|
StyleCache |
put(StyleElementList o,
Range r,
boolean selected) |
private static final Storage<StyleCache> internPool
public static final StyleCache EMPTY_STYLECACHE
private static final int PLAIN
private static final int SELECTED
private final DividedScale<StyleElementList>[] states
private StyleCache(StyleCache sc)
private StyleCache()
public StyleCache put(StyleElementList o, Range r, boolean selected)
public Pair<StyleElementList,Range> getWithRange(double scale, boolean selected)
private int getIndex(boolean selected)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
private StyleCache intern()
public static int getInternPoolSize()