Class NoOpStringInterner

java.lang.Object
opennlp.tools.util.jvm.NoOpStringInterner
All Implemented Interfaces:
opennlp.tools.util.jvm.StringInterner

@Internal @ThreadSafe public class NoOpStringInterner extends Object implements opennlp.tools.util.jvm.StringInterner
A no-op StringInterner implementation, which does not intern. It just returns the input as is.
  • Constructor Details

    • NoOpStringInterner

      public NoOpStringInterner()
  • Method Details

    • intern

      public String intern(String sample)
      Specified by:
      intern in interface opennlp.tools.util.jvm.StringInterner