|
||||||||||
| 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 java.lang.String |
cache(java.lang.String s)
Get the string from the cache if possible. |
static void |
clearCache()
Clear the cache. |
static java.lang.String |
fromCacheOrNew(java.lang.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 java.lang.String cache(java.lang.String s)
s - the original string
public static java.lang.String fromCacheOrNew(java.lang.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 | |||||||||