Package libcore.internal
Class StringPool
- java.lang.Object
-
- libcore.internal.StringPool
-
public final class StringPool extends Object
A pool of string instances. Unlike theVM's interned strings, this pool provides no guarantee of reference equality. It is intended only to save allocations. This class is not thread safe.
-
-
Constructor Summary
Constructors Constructor Description StringPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(char[] array, int start, int length)Returns a string equal tonew String(array, start, length).
-
-
-
Method Detail
-
get
public String get(char[] array, int start, int length)
Returns a string equal tonew String(array, start, length).
-
-