public class SegmentedHashSet extends MapSet
| Constructor and Description |
|---|
SegmentedHashSet()
Construct a thread-safe hash set using the default settings.
|
SegmentedHashSet(int cInitialBuckets, float flLoadFactor, float flGrowthRate)
Construct a thread-safe hash set using the specified settings.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map |
instantiateMap()
Factory pattern: Provide an underlying Map for this Set implementation to store its contents in.
|
add, addAll, clear, clone, contains, containsAll, getMap, iterator, readExternal, readExternal, remove, removeAll, retainAll, size, toArray, toArray, writeExternal, writeExternalequals, hashCodeisEmpty, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitisEmpty, spliteratorparallelStream, removeIf, streampublic SegmentedHashSet()
public SegmentedHashSet(int cInitialBuckets,
float flLoadFactor,
float flGrowthRate)
cInitialBuckets - the initial number of hash buckets, 0 < nflLoadFactor - the acceptable load factor before resizing occurs, 0 < n, such that a load factor of 1.0 causes resizing when the number of entries exceeds the number of bucketsflGrowthRate - the rate of bucket growth when a resize occurs, 0 < n, such that a growth rate of 1.0 will double the number of buckets: bucketcount = bucketcount * (1 + growthrate)protected Map instantiateMap()
instantiateMap in class MapSet