public class NoOpStringInternStrategy extends Object implements StringInternStrategy
StringInternStrategy
.Constructor and Description |
---|
NoOpStringInternStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
intern(String value)
Interns a String object in a pool and returns a String equal to the one provided.
|
public String intern(String value)
StringInternStrategy
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.
intern
in interface StringInternStrategy
value
- String to be internedCopyright © 2010–2016 Google. All rights reserved.