StringInterner

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def makeStrongInterner(maxStringLength: Int, initialSize: Int): StringInterner

Creates a string interner that will hold strong references to the interned objects and they wont be GC'ed until reference to the interner is released.

Creates a string interner that will hold strong references to the interned objects and they wont be GC'ed until reference to the interner is released.

Value Params
initialSize

Initial string table size

maxStringLength

Maximum string length that will be considered for interning

Returns

Instance of the StringInterner which uses strong references

Concrete fields