public class StringCache extends Object
Modifier and Type | Field and Description |
---|---|
int |
statHits |
int |
statQueries |
Constructor and Description |
---|
StringCache() |
StringCache(int maxSize) |
StringCache(int maxSize,
int initialMapCapacity) |
Modifier and Type | Method and Description |
---|---|
String |
getString(char[] chars,
int offset,
int len) |
void |
putSurviveString(String s)
Put a string into cache that will survive there
so that it will be never removed.
|
String |
toString() |