Class ConcurrentOpenHashSet.Builder<V>
- java.lang.Object
-
- org.apache.bookkeeper.util.collections.ConcurrentOpenHashSet.Builder<V>
-
- Enclosing class:
- ConcurrentOpenHashSet<V>
public static class ConcurrentOpenHashSet.Builder<V> extends java.lang.Object
Builder of ConcurrentOpenHashSet.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
autoShrink
(package private) int
concurrencyLevel
(package private) float
expandFactor
(package private) int
expectedItems
(package private) float
mapFillFactor
(package private) float
mapIdleFactor
(package private) float
shrinkFactor
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentOpenHashSet.Builder<V>
autoShrink(boolean autoShrink)
ConcurrentOpenHashSet<V>
build()
ConcurrentOpenHashSet.Builder<V>
concurrencyLevel(int concurrencyLevel)
ConcurrentOpenHashSet.Builder<V>
expandFactor(float expandFactor)
ConcurrentOpenHashSet.Builder<V>
expectedItems(int expectedItems)
ConcurrentOpenHashSet.Builder<V>
mapFillFactor(float mapFillFactor)
ConcurrentOpenHashSet.Builder<V>
mapIdleFactor(float mapIdleFactor)
ConcurrentOpenHashSet.Builder<V>
shrinkFactor(float shrinkFactor)
-
-
-
Method Detail
-
expectedItems
public ConcurrentOpenHashSet.Builder<V> expectedItems(int expectedItems)
-
concurrencyLevel
public ConcurrentOpenHashSet.Builder<V> concurrencyLevel(int concurrencyLevel)
-
mapFillFactor
public ConcurrentOpenHashSet.Builder<V> mapFillFactor(float mapFillFactor)
-
mapIdleFactor
public ConcurrentOpenHashSet.Builder<V> mapIdleFactor(float mapIdleFactor)
-
expandFactor
public ConcurrentOpenHashSet.Builder<V> expandFactor(float expandFactor)
-
shrinkFactor
public ConcurrentOpenHashSet.Builder<V> shrinkFactor(float shrinkFactor)
-
autoShrink
public ConcurrentOpenHashSet.Builder<V> autoShrink(boolean autoShrink)
-
build
public ConcurrentOpenHashSet<V> build()
-
-