public final class BlockUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean[] |
compactArray(boolean[] array,
int index,
int length)
Returns an array containing elements in the specified range of the specified array.
|
static byte[] |
compactArray(byte[] array,
int index,
int length) |
static int[] |
compactArray(int[] array,
int index,
int length) |
static long[] |
compactArray(long[] array,
int index,
int length) |
static short[] |
compactArray(short[] array,
int index,
int length) |
static byte[] |
ensureCapacity(byte[] buffer,
int capacity)
Returns a byte array of size capacity if the input buffer is null or smaller than the capacity.
|
static int[] |
ensureCapacity(int[] buffer,
int capacity)
Returns an int array of size capacity if the input buffer is null or smaller than the capacity.
|
static long[] |
ensureCapacity(long[] buffer,
int capacity)
Returns a long array of size capacity if the input buffer is null or smaller than the capacity.
|
static short[] |
ensureCapacity(short[] buffer,
int capacity)
Returns a short array of size capacity if the input buffer is null or smaller than the capacity.
|
static int |
getNum128Integers(int length) |
static boolean |
internalPositionInRange(int internalPosition,
int offset,
int positionCount) |
public static boolean[] compactArray(boolean[] array,
int index,
int length)
public static byte[] compactArray(byte[] array,
int index,
int length)
public static short[] compactArray(short[] array,
int index,
int length)
public static int[] compactArray(int[] array,
int index,
int length)
public static long[] compactArray(long[] array,
int index,
int length)
public static boolean internalPositionInRange(int internalPosition,
int offset,
int positionCount)
public static byte[] ensureCapacity(byte[] buffer,
int capacity)
public static short[] ensureCapacity(short[] buffer,
int capacity)
public static int[] ensureCapacity(int[] buffer,
int capacity)
public static long[] ensureCapacity(long[] buffer,
int capacity)
public static int getNum128Integers(int length)
Copyright © 2012–2021. All rights reserved.