|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.configuration.StringPool
public class StringPool
A String pool utility that can be used to return an already present String object from the heap instead of creating new Strings for String objects that are equal. Since the hst configuration object contains many equal strings for multiple sites, this saves lots of memory.
Method Summary | |
---|---|
static void |
clear()
Clears the entire StringPool |
static String |
get(String string)
If string is already present in the pool (same hashcode and equals), then the already present String
object is returned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String get(String string)
string
is already present in the pool (same hashcode and equals), then the already present String
object is returned. Else, the string
is added to the stringPool.
string
-
public static void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |