Package com.google.common.collect
Class Interners.InternerBuilder
- java.lang.Object
-
- com.google.common.collect.Interners.InternerBuilder
-
- Enclosing class:
- Interners
public static class Interners.InternerBuilder extends java.lang.Object
Builder forInterner
instances.- Since:
- 21.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> Interner<E>
build()
Interners.InternerBuilder
concurrencyLevel(int concurrencyLevel)
Sets the concurrency level that will be used by the to-be-builtInterner
.Interners.InternerBuilder
strong()
Instructs theInterners.InternerBuilder
to build a strong interner.Interners.InternerBuilder
weak()
Instructs theInterners.InternerBuilder
to build a weak interner.
-
-
-
Method Detail
-
strong
public Interners.InternerBuilder strong()
Instructs theInterners.InternerBuilder
to build a strong interner.- See Also:
Interners.newStrongInterner()
-
weak
@GwtIncompatible("java.lang.ref.WeakReference") public Interners.InternerBuilder weak()
Instructs theInterners.InternerBuilder
to build a weak interner.- See Also:
Interners.newWeakInterner()
-
concurrencyLevel
public Interners.InternerBuilder concurrencyLevel(int concurrencyLevel)
Sets the concurrency level that will be used by the to-be-builtInterner
.- See Also:
MapMaker.concurrencyLevel(int)
-
-