|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.util.StringCache
public class StringCache
A few String utility functions.
Field Summary | |
---|---|
static boolean |
OBJECT_CACHE
|
static int |
OBJECT_CACHE_SIZE
|
Method Summary | |
---|---|
static String |
cache(String s)
Get the string from the cache if possible. |
static void |
clearCache()
Clear the cache. |
static String |
fromCacheOrNew(String s)
Get a string from the cache, and if no such string has been found, create a new one with only this content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean OBJECT_CACHE
public static final int OBJECT_CACHE_SIZE
Method Detail |
---|
public static String cache(String s)
s
- the original string
public static String fromCacheOrNew(String s)
s
- the string
public static void clearCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |