public final class StringPool
extends java.lang.Object
VM's
interned strings, this pool provides no guarantee of reference equality.
It is intended only to save allocations. This class is not thread safe.| Constructor and Description |
|---|
StringPool() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(char[] array,
int start,
int length)
Returns a string equal to
new String(array, start, length). |