Schnittstelle StringInterner


public interface StringInterner
A marker-interface for a String interner implementation.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    intern(String sample)
    Interns and returns a reference to the representative instance for any collection of string instances that are equal to each other.
  • Methodendetails

    • 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.
      Parameter:
      sample - string instance to be interned
      Gibt zurück:
      reference to the interned string instance