|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.internal.utils.StringPool
public final class StringPool
A string pool is used for sharing strings in a way that eliminates duplicate equal strings. A string pool instance can be maintained over a long period of time, or used as a temporary structure during a string sharing pass over a data structure.
This class is not intended to be subclassed by clients.
IStringPoolParticipant| Constructor Summary | |
|---|---|
StringPool()
Creates a new string pool. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringPool()
| Method Detail |
|---|
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 pool
public int getSavedStringCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||