Uses of Interface
com.google.common.collect.Interner
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of Interner in com.google.common.collect
Modifier and TypeMethodDescription<E> Interner
<E> Interners.InternerBuilder.build()
static <E> Interner
<E> Interners.newStrongInterner()
Returns a new thread-safe interner which retains a strong reference to each instance it has interned, thus preventing these instances from being garbage-collected.static <E> Interner
<E> Interners.newWeakInterner()
Returns a new thread-safe interner which retains a weak reference to each instance it has interned, and so does not prevent these instances from being garbage-collected.Modifier and TypeMethodDescriptionstatic <E> Function
<E, E> Interners.asFunction
(Interner<E> interner) Returns a function that delegates to theintern(E)
method of the given interner.