Class CHMStringInterner

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

@Internal @ThreadSafe public class CHMStringInterner extends Object implements StringInterner
  • Constructor Details

    • CHMStringInterner

      public CHMStringInterner()
  • Method Details

    • intern

      public String intern(String sample)
      Interns and returns a reference to the representative instance for any collection of string instances that are equal to each other.
      Specified by:
      intern in interface StringInterner
      Parameters:
      sample - string instance to be interned
      Returns:
      reference to the interned string instance