Package com.carrotsearch.hppc
Interface Preallocable
- All Known Implementing Classes:
ByteArrayDeque,ByteArrayList,ByteStack,CharArrayDeque,CharArrayList,CharByteHashMap,CharByteWormMap,CharCharHashMap,CharCharWormMap,CharDoubleHashMap,CharDoubleWormMap,CharFloatHashMap,CharFloatWormMap,CharHashSet,CharIntHashMap,CharIntWormMap,CharLongHashMap,CharLongWormMap,CharObjectHashMap,CharObjectWormMap,CharShortHashMap,CharShortWormMap,CharStack,CharWormSet,DoubleArrayDeque,DoubleArrayList,DoubleStack,FloatArrayDeque,FloatArrayList,FloatStack,IntArrayDeque,IntArrayList,IntByteHashMap,IntByteWormMap,IntCharHashMap,IntCharWormMap,IntDoubleHashMap,IntDoubleWormMap,IntFloatHashMap,IntFloatWormMap,IntHashSet,IntIntHashMap,IntIntWormMap,IntLongHashMap,IntLongWormMap,IntObjectHashMap,IntObjectWormMap,IntShortHashMap,IntShortWormMap,IntStack,IntWormSet,LongArrayDeque,LongArrayList,LongByteHashMap,LongByteWormMap,LongCharHashMap,LongCharWormMap,LongDoubleHashMap,LongDoubleWormMap,LongFloatHashMap,LongFloatWormMap,LongHashSet,LongIntHashMap,LongIntWormMap,LongLongHashMap,LongLongWormMap,LongObjectHashMap,LongObjectWormMap,LongShortHashMap,LongShortWormMap,LongStack,LongWormSet,ObjectArrayDeque,ObjectArrayList,ObjectByteHashMap,ObjectByteIdentityHashMap,ObjectByteWormMap,ObjectCharHashMap,ObjectCharIdentityHashMap,ObjectCharWormMap,ObjectDoubleHashMap,ObjectDoubleIdentityHashMap,ObjectDoubleWormMap,ObjectFloatHashMap,ObjectFloatIdentityHashMap,ObjectFloatWormMap,ObjectHashSet,ObjectIdentityHashSet,ObjectIntHashMap,ObjectIntIdentityHashMap,ObjectIntWormMap,ObjectLongHashMap,ObjectLongIdentityHashMap,ObjectLongWormMap,ObjectObjectHashMap,ObjectObjectIdentityHashMap,ObjectObjectWormMap,ObjectShortHashMap,ObjectShortIdentityHashMap,ObjectShortWormMap,ObjectStack,ObjectWormSet,ShortArrayDeque,ShortArrayList,ShortByteHashMap,ShortByteWormMap,ShortCharHashMap,ShortCharWormMap,ShortDoubleHashMap,ShortDoubleWormMap,ShortFloatHashMap,ShortFloatWormMap,ShortHashSet,ShortIntHashMap,ShortIntWormMap,ShortLongHashMap,ShortLongWormMap,ShortObjectHashMap,ShortObjectWormMap,ShortShortHashMap,ShortShortWormMap,ShortStack,ShortWormSet
public interface Preallocable
Anything that can preallocate buffers given prior knowledge of the number of stored elements.
-
Method Summary
Modifier and TypeMethodDescriptionvoidensureCapacity(int expectedElements) Ensure this container can hold at least the given number of elements without resizing its buffers.
-
Method Details
-
ensureCapacity
void ensureCapacity(int expectedElements) Ensure this container can hold at least the given number of elements without resizing its buffers.- Parameters:
expectedElements- The total number of elements, inclusive.
-