public static class DslJson.SimpleStringCache extends Object implements StringCache
| Constructor and Description |
|---|
SimpleStringCache()
Will use String[] with 1024 elements.
|
SimpleStringCache(int log2Size) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(char[] chars,
int len)
Calculates hash of the provided "string" and looks it up from the String[]
It it doesn't exists of a different string is already there a new String instance is created
and saved into the String[]
|
public SimpleStringCache()
public SimpleStringCache(int log2Size)
public String get(char[] chars, int len)
get in interface StringCachechars - buffer into which string was parsedlen - the string length inside the bufferCopyright © 2023. All rights reserved.