public class StringPool extends Object
Modifier and Type | Method and Description |
---|---|
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. |
static int |
size() |
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
- The String
object for which to get its cached object instancepublic static int size()
public static void clear()
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.