public class ArrayUtils extends Object
Constructor and Description |
---|
ArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
grow(byte[] array,
int minSize)
Increase the size of the array if needed.
|
static org.apache.lucene.util.BytesRef |
grow(org.apache.lucene.util.BytesRef ref,
int minSize)
Increase the size of the array if needed.
|
static int[] |
grow(int[] array,
int size)
Increase the size of the array if needed.
|
static org.apache.lucene.util.IntsRef |
grow(org.apache.lucene.util.IntsRef ref,
int minSize)
Increase the size of the array if needed.
|
static void |
growAndCopy(org.apache.lucene.util.IntsRef ref,
int size)
Increase the size of the array if needed.
|
public static final void growAndCopy(org.apache.lucene.util.IntsRef ref, int size)
public static final int[] grow(int[] array, int size)
Do not over allocate.
public static final org.apache.lucene.util.IntsRef grow(org.apache.lucene.util.IntsRef ref, int minSize)
public static final byte[] grow(byte[] array, int minSize)
public static final org.apache.lucene.util.BytesRef grow(org.apache.lucene.util.BytesRef ref, int minSize)
Copyright © 2014. All rights reserved.