|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.internal.xtend.util.StringCache
public class StringCache
A cache for Strings which allows that its values might by garbage collected.
Constructor Summary | |
---|---|
StringCache()
|
Method Summary | |
---|---|
static java.lang.String |
get(java.lang.String s)
|
static java.lang.String |
getx(java.lang.String s,
boolean createNew)
Retrieves a String value from the cache. |
static void |
putx(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringCache()
Method Detail |
---|
public static java.lang.String getx(java.lang.String s, boolean createNew)
s
- A stringcreateNew
- If true
the string will be put into the cache if it was not cached before.
s
when it was not cached before.public static java.lang.String get(java.lang.String s)
public static void putx(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |