public final class StringPool
extends java.lang.Object
This class is not intended to be subclassed by clients.
Note: This class is copied from org.eclipse.core.resources| Constructor and Description |
|---|
StringPool() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
add(java.lang.String string)
Adds a
String to the pool. |
int |
getSavedStringCount()
Returns an estimate of the size in bytes that was saved by sharing strings in
the pool.
|
public java.lang.String add(java.lang.String string)
String to the pool. Returns a String
that is equal to the argument but that is unique within this pool.string - The string to add to the poolpublic int getSavedStringCount()