java.lang.Object
org.apache.commons.collections4.bloomfilter.IndexUtils

final class IndexUtils extends Object
Provides functions to assist in IndexExtractor creation and manipulation.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final int
    The maximum array size for the methods in this class: 2147483639.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Don't instantiate.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static int[]
    ensureCapacityForAdd(int[] array, int index)
    Ensure the array can add an element at the specified index.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MAX_ARRAY_SIZE

      static final int MAX_ARRAY_SIZE
      The 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.