public class StringPool extends Object
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 void clear()
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.