Top Description Methods
com.carrotsearch.hppc

public Interface Preallocable

Known Direct Implementers
com.carrotsearch.hppc.ShortArrayDeque, com.carrotsearch.hppc.ShortArrayList, com.carrotsearch.hppc.ShortByteHashMap, com.carrotsearch.hppc.IntFloatHashMap, com.carrotsearch.hppc.IntHashSet, com.carrotsearch.hppc.IntIntHashMap, com.carrotsearch.hppc.IntLongHashMap, com.carrotsearch.hppc.IntObjectHashMap, com.carrotsearch.hppc.IntShortHashMap, com.carrotsearch.hppc.ShortCharHashMap, com.carrotsearch.hppc.ShortDoubleHashMap, com.carrotsearch.hppc.ShortFloatHashMap, com.carrotsearch.hppc.ShortHashSet, com.carrotsearch.hppc.ShortIntHashMap, com.carrotsearch.hppc.ShortLongHashMap, com.carrotsearch.hppc.ShortObjectHashMap, com.carrotsearch.hppc.CharIntHashMap, com.carrotsearch.hppc.CharLongHashMap, com.carrotsearch.hppc.CharObjectHashMap, com.carrotsearch.hppc.CharShortHashMap, com.carrotsearch.hppc.DoubleArrayDeque, com.carrotsearch.hppc.DoubleArrayList, com.carrotsearch.hppc.FloatArrayDeque, com.carrotsearch.hppc.ByteArrayDeque, com.carrotsearch.hppc.FloatArrayList, com.carrotsearch.hppc.LongArrayDeque, com.carrotsearch.hppc.LongIntHashMap, com.carrotsearch.hppc.ObjectDoubleHashMap, com.carrotsearch.hppc.ObjectFloatHashMap, com.carrotsearch.hppc.ObjectHashSet, com.carrotsearch.hppc.ObjectIntHashMap, com.carrotsearch.hppc.ObjectLongHashMap, com.carrotsearch.hppc.ObjectObjectHashMap, com.carrotsearch.hppc.LongLongHashMap, com.carrotsearch.hppc.LongObjectHashMap, com.carrotsearch.hppc.LongShortHashMap, com.carrotsearch.hppc.ObjectArrayDeque, com.carrotsearch.hppc.ObjectArrayList, com.carrotsearch.hppc.ObjectByteHashMap, com.carrotsearch.hppc.ObjectCharHashMap, com.carrotsearch.hppc.IntArrayDeque, com.carrotsearch.hppc.IntArrayList, com.carrotsearch.hppc.IntByteHashMap, com.carrotsearch.hppc.IntCharHashMap, com.carrotsearch.hppc.IntDoubleHashMap, com.carrotsearch.hppc.ByteArrayList, com.carrotsearch.hppc.CharArrayDeque, com.carrotsearch.hppc.CharArrayList, com.carrotsearch.hppc.CharByteHashMap, com.carrotsearch.hppc.CharCharHashMap, com.carrotsearch.hppc.CharDoubleHashMap, com.carrotsearch.hppc.CharFloatHashMap, com.carrotsearch.hppc.CharHashSet, com.carrotsearch.hppc.ShortShortHashMap, com.carrotsearch.hppc.LongArrayList, com.carrotsearch.hppc.LongByteHashMap, com.carrotsearch.hppc.LongCharHashMap, com.carrotsearch.hppc.LongDoubleHashMap, com.carrotsearch.hppc.LongFloatHashMap, com.carrotsearch.hppc.LongHashSet, com.carrotsearch.hppc.ObjectShortHashMap

Anything that can preallocate buffers given prior knowledge of the number of stored elements.

Method Summary

Modifier and TypeMethod and Description
public void
ensureCapacity(int
The total number of elements, inclusive.
expectedElements
)

Ensure this container can hold at least the given number of elements without resizing its buffers.

Method Detail

ensureCapacityback to summary
public void ensureCapacity(int expectedElements)

Ensure this container can hold at least the given number of elements without resizing its buffers.

Parameters
expectedElements:int

The total number of elements, inclusive.