| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Interner |
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 |
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 Type | Method and Description |
|---|---|
static <E> Function |
Interners.asFunction(Interner
Returns a function that delegates to the
intern(E) method of the given interner.
|