mirror of
http://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8.git
synced 2025-04-30 02:01:59 -05:00
22 lines
636 B
Java
22 lines
636 B
Java
/*
|
|
* HPPC
|
|
*
|
|
* Copyright (C) 2010-2024 Carrot Search s.c. and contributors
|
|
* All rights reserved.
|
|
*
|
|
* Refer to the full license file "LICENSE.txt":
|
|
* https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt
|
|
*/
|
|
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);
|
|
}
|