@InterfaceAudience.Private public class ArrayUtils extends Object
Constructor and Description |
---|
ArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
getFirst(long[] a) |
static long |
getLast(long[] a) |
static int |
getTotalLengthOfArrays(Iterable<byte[]> arrays) |
static byte[] |
growIfNecessary(byte[] array,
int minLength,
int numAdditionalBytes) |
static int[] |
growIfNecessary(int[] array,
int minLength,
int numAdditionalInts) |
static long[] |
growIfNecessary(long[] array,
int minLength,
int numAdditionalLongs) |
static boolean |
isEmpty(byte[] a) |
static boolean |
isEmpty(long[] a) |
static boolean |
isEmpty(Object[] a) |
static int |
length(byte[] a) |
static int |
length(long[] a) |
static int |
length(Object[] a) |
static ArrayList<Long> |
toList(long[] array) |
public static int length(byte[] a)
public static int length(long[] a)
public static int length(Object[] a)
public static boolean isEmpty(byte[] a)
public static boolean isEmpty(long[] a)
public static boolean isEmpty(Object[] a)
public static long getFirst(long[] a)
public static long getLast(long[] a)
public static int getTotalLengthOfArrays(Iterable<byte[]> arrays)
public static byte[] growIfNecessary(byte[] array, int minLength, int numAdditionalBytes)
public static int[] growIfNecessary(int[] array, int minLength, int numAdditionalInts)
public static long[] growIfNecessary(long[] array, int minLength, int numAdditionalLongs)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.