public class StringCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
OBJECT_CACHE |
static int |
OBJECT_CACHE_SIZE |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final boolean OBJECT_CACHE
public static final int OBJECT_CACHE_SIZE
public static java.lang.String cache(java.lang.String s)
s
- the original stringpublic static java.lang.String fromCacheOrNew(java.lang.String s)
s
- the stringpublic static void clearCache()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"