public class HostedStringDeduplication extends Object
String.intern(). Calling
String.intern() has negative side effects on the image size because all interned strings
must be maintained in an array in the image heap, see StringInternSupport.| Modifier and Type | Method and Description |
|---|---|
String |
deduplicate(String s,
boolean unintern)
De-duplicates the provided string.
|
static boolean |
isInternedString(String str)
Returns true if the provided
String is interned. |
static HostedStringDeduplication |
singleton() |
public static HostedStringDeduplication singleton()
public String deduplicate(String s, boolean unintern)