java.lang.Object
net.i2p.util.SimpleByteCache.IntCacheMap.Table
- Enclosing class:
SimpleByteCache.IntCacheMap
Replaced wholesale on growth, so a reader always sees a complete one.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]The keys stored in the table.private final intMask hashing keys into the table.private final AtomicReferenceArray<SimpleByteCache> The caches stored in the table.Constructor Summary
ConstructorsMethod Summary
Field Details
mask
private final int maskMask hashing keys into the table.keys
private final int[] keysThe keys stored in the table.vals
The caches stored in the table.
Constructor Details
Table
Table(int capacity) Builds an empty hash table.- Parameters:
capacity- slots in the table