| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int | accessCount
Access count. |
| pack-priv static StringCache. | bcCache
Cache for byte chunk. |
| pack-priv static int | bcCount
toString count for byte chunk. |
| pack-priv static final HashMap | bcStats
Statistics hash map for byte chunk. |
| pack-priv static boolean | byteEnabled
Enabled ? |
| pack-priv static int | |
| pack-priv static StringCache. | ccCache
Cache for char chunk. |
| pack-priv static int | ccCount
toString count for char chunk. |
| pack-priv static final HashMap | ccStats
Statistics hash map for char chunk. |
| pack-priv static boolean | |
| pack-priv static int | hitCount
Hit count. |
| private static final Logger | logger
Default Logger. |
| pack-priv static int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static int | |
| protected static int | |
| protected static String | |
| protected static String | |
| protected static int | findClosest(ByteChunk name, StringCache.
Find an entry given its name in a sorted array of map elements. |
| protected static int | findClosest(CharChunk name, StringCache.
Find an entry given its name in a sorted array of map elements. |
| public static int | |
| public static boolean | |
| public static int | |
| public static boolean | |
| public static int | |
| public static int | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static String | |
| public static String |
| accessCount | back to summary |
|---|---|
| pack-priv static int accessCount Access count. | |
| bcCache | back to summary |
|---|---|
| pack-priv static StringCache. Cache for byte chunk. | |
| bcCount | back to summary |
|---|---|
| pack-priv static int bcCount toString count for byte chunk. | |
| bcStats | back to summary |
|---|---|
| pack-priv static final HashMap<StringCache. Statistics hash map for byte chunk. | |
| byteEnabled | back to summary |
|---|---|
| pack-priv static boolean byteEnabled Enabled ? | |
| cacheSize | back to summary |
|---|---|
| pack-priv static int cacheSize | |
| ccCache | back to summary |
|---|---|
| pack-priv static StringCache. Cache for char chunk. | |
| ccCount | back to summary |
|---|---|
| pack-priv static int ccCount toString count for char chunk. | |
| ccStats | back to summary |
|---|---|
| pack-priv static final HashMap<StringCache. Statistics hash map for char chunk. | |
| charEnabled | back to summary |
|---|---|
| pack-priv static boolean charEnabled | |
| hitCount | back to summary |
|---|---|
| pack-priv static int hitCount Hit count. | |
| logger | back to summary |
|---|---|
| private static final Logger logger Default Logger. | |
| trainThreshold | back to summary |
|---|---|
| pack-priv static int trainThreshold | |
| StringCache | back to summary |
|---|---|
| public StringCache() | |
| compare | back to summary |
|---|---|
| protected static int compare(ByteChunk name, byte[] compareTo) Compare given byte chunk with byte array. Return -1, 0 or +1 if inferior, equal, or superior to the String. | |
| compare | back to summary |
|---|---|
| protected static int compare(CharChunk name, char[] compareTo) Compare given char chunk with char array. Return -1, 0 or +1 if inferior, equal, or superior to the String. | |
| find | back to summary |
|---|---|
| protected static String find(ByteChunk name) Find an entry given its name in the cache and return the associated String. | |
| find | back to summary |
|---|---|
| protected static String find(CharChunk name) Find an entry given its name in the cache and return the associated String. | |
| findClosest | back to summary |
|---|---|
| protected static int findClosest(ByteChunk name, StringCache. Find an entry given its name in a sorted array of map elements. This will return the index for the closest inferior or equal item in the given array. | |
| findClosest | back to summary |
|---|---|
| protected static int findClosest(CharChunk name, StringCache. Find an entry given its name in a sorted array of map elements. This will return the index for the closest inferior or equal item in the given array. | |
| getAccessCount | back to summary |
|---|---|
public static int getAccessCount()
| |
| getByteEnabled | back to summary |
|---|---|
public static boolean getByteEnabled()
| |
| getCacheSize | back to summary |
|---|---|
public static int getCacheSize()
| |
| getCharEnabled | back to summary |
|---|---|
public static boolean getCharEnabled()
| |
| getHitCount | back to summary |
|---|---|
public static int getHitCount()
| |
| getTrainThreshold | back to summary |
|---|---|
public static int getTrainThreshold()
| |
| reset | back to summary |
|---|---|
| public static void reset() | |
| setByteEnabled | back to summary |
|---|---|
public static void setByteEnabled(boolean byteEnabled)
| |
| setCacheSize | back to summary |
|---|---|
public static void setCacheSize(int cacheSize)
| |
| setCharEnabled | back to summary |
|---|---|
public static void setCharEnabled(boolean charEnabled)
| |
| setTrainThreshold | back to summary |
|---|---|
public static void setTrainThreshold(int trainThreshold)
| |
| toString | back to summary |
|---|---|
| public static String toString(ByteChunk bc) | |
| toString | back to summary |
|---|---|
| public static String toString(CharChunk cc) | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| charset | back to summary |
|---|---|
| public Charset charset | |
| name | back to summary |
|---|---|
| public byte[] name | |
| value | back to summary |
|---|---|
| public String value | |
| ByteEntry | back to summary |
|---|---|
| protected ByteEntry() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| CharEntry | back to summary |
|---|---|
| protected CharEntry() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |