
com.carrotsearch.hppc.Preallocable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hppc Show documentation
Show all versions of hppc Show documentation
High Performance Primitive Collections: data structures (maps, sets, lists, stacks, queues) generated for combinations of object and primitive types to conserve JVM memory and speed up execution.
package com.carrotsearch.hppc;
/**
* Anything that can preallocate buffers given prior knowledge of the number of
* stored elements.
*/
public interface Preallocable {
/**
* Ensure this container can hold at least the given number of elements
* without resizing its buffers.
*
* @param expectedElements
* The total number of elements, inclusive.
*/
public void ensureCapacity(int expectedElements);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy