Package opennlp.tools.util.jvm

# Interface StringInterner

All Known Implementing Classes:
  `CHMStringDeduplicator`, `CHMStringInterner`, `HMStringInterner`, `JvmStringInterner`, `NoOpStringInterner`

public interface StringInterner
A marker-interface for a String interner implementation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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.

- ## Method Details

  - ### intern

    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.
    Parameters:
      `sample` - string instance to be interned
    Returns:
      reference to the interned string instance