Class IndexUtils
java.lang.Object
org.apache.commons.collections4.bloomfilter.IndexUtils
Provides functions to assist in IndexExtractor creation and manipulation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intThe maximum array size for the methods in this class: 2147483639. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static int[]ensureCapacityForAdd(int[] array, int index) Ensure the array can add an element at the specified index.
-
Field Details
-
MAX_ARRAY_SIZE
static final int MAX_ARRAY_SIZEThe maximum array size for the methods in this class: 2147483639.- See Also:
-
-
Constructor Details
-
IndexUtils
private IndexUtils()Don't instantiate.
-
-
Method Details
-
ensureCapacityForAdd
static int[] ensureCapacityForAdd(int[] array, int index) Ensure the array can add an element at the specified index.- Parameters:
array- the array to check.index- the index to add at.- Returns:
- the array or a newly allocated copy of the array.
-