public interface StringInternStrategy
WeakInterningPool<String>
functionality with added optimizations. To be
used to optimize the memory usage and garbage collection during text processing.String intern(String value)
If there exists a String in the pool equal to the provided value then it will be returned. Otherwise provided String may be interned.
There is no guarantees on when the pool will return the same object as provided. It is possible that value == intern(value) will never be true.
value
- String to be internedCopyright © 2010-2013 Google. All Rights Reserved.