Java org.apache.lucene.util ArrayUtil fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util ArrayUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util ArrayUtil.

The text is from its open source code.

Field

intMAX_ARRAY_LENGTH
Maximum length for an array (Integer.MAX_VALUE - RamUsageEstimator.NUM_BYTES_ARRAY_HEADER).

Method

T[]grow(T[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
short[]grow(short[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
float[]grow(float[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
double[]grow(double[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
int[]grow(int[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
long[]grow(long[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
byte[]grow(byte[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
char[]grow(char[] array, int minSize)
Returns an array whose size is at least minSize , generally over-allocating exponentially
short[]grow(short[] array)
Returns a larger array, generally over-allocating exponentially
float[]grow(float[] array)
Returns a larger array, generally over-allocating exponentially
double[]grow(double[] array)
Returns a larger array, generally over-allocating exponentially
int[]grow(int[] array)
Returns a larger array, generally over-allocating exponentially
long[]grow(long[] array)
Returns a larger array, generally over-allocating exponentially
byte[]grow(byte[] array)
Returns a larger array, generally over-allocating exponentially
char[]grow(char[] array)
Returns a larger array, generally over-allocating exponentially
inthashCode(char[] array, int start, int end)
Returns hash of chars in range start (inclusive) to end (inclusive)
intoversize(int minTargetSize, int bytesPerElement)
Returns an array size >= minTargetSize, generally over-allocating exponentially to achieve amortized linear-time cost as the array grows.
intparseInt(char[] chars, int offset, int len)
Parses a char array into an int.
voidswap(T[] arr, int i, int j)
Swap values stored in slots i and j
voidtimSort(T[] a, Comparator comp)
Sorts the given array using the Comparator .
voidtimSort(T[] a)
Sorts the given array in natural order.