Package com.carrotsearch.hppc
Interface Preallocable
-
- All Known Implementing Classes:
DoubleArrayList,IntArrayList,IntHashSet,IntObjectHashMap,LongArrayList,LongHashSet,LongIntHashMap,LongObjectHashMap,ObjectArrayList,ObjectFloatHashMap,ObjectHashSet,ObjectIntHashMap,ObjectIntScatterMap,ObjectLongHashMap,ObjectObjectHashMap
public interface PreallocableAnything that can preallocate buffers given prior knowledge of the number of stored elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidensureCapacity(int expectedElements)Ensure this container can hold at least the given number of elements without resizing its buffers.
-