Package opennlp.tools.util.jvm
Class NoOpStringInterner
java.lang.Object
opennlp.tools.util.jvm.NoOpStringInterner
- All Implemented Interfaces:
StringInterner
A no-op
StringInterner implementation, which does not intern.
It just returns the input as is.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoOpStringInterner
public NoOpStringInterner()
-
-
Method Details
-
intern
Interns and returns a reference to the representative instance for any collection of string instances that are equal to each other.- Specified by:
internin interfaceStringInterner- Parameters:
sample- string instance to be interned- Returns:
- reference to the interned string instance
-