private static class Atom.InternedStrings extends Object
Modifier and Type | Field and Description |
---|---|
private static WeakHashMap<String,WeakReference<String>> |
internedStrings
Look up for interned strings.
|
Modifier | Constructor and Description |
---|---|
private |
InternedStrings() |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
findAtomString(String str)
Find a string literal from an atom
|
(package private) static String |
findInternedString(String str)
Find an interned string but don't create it if not found
|
(package private) static String |
internUnfoundString(String str)
Intern a string that is not an atom or already interned string
|
private static final WeakHashMap<String,WeakReference<String>> internedStrings
private InternedStrings()
static String findInternedString(String str)
str
- string to lookupstatic String findAtomString(String str)
str
- string to findstatic String internUnfoundString(String str)
str
- string to intern