public final class Arrays extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(boolean[] array) |
static boolean |
isEmpty(byte[] array) |
static boolean |
isEmpty(char[] array) |
static boolean |
isEmpty(Collection<?> array) |
static boolean |
isEmpty(double[] array) |
static boolean |
isEmpty(float[] array) |
static boolean |
isEmpty(int[] array) |
static boolean |
isEmpty(long[] array) |
static boolean |
isEmpty(short[] array) |
static <T> boolean |
isEmpty(T[] array)
Checks if an array is empty or null.
|
static boolean |
isNotEmpty(boolean[] array) |
static boolean |
isNotEmpty(byte[] array) |
static boolean |
isNotEmpty(char[] array) |
static boolean |
isNotEmpty(Collection<?> array) |
static boolean |
isNotEmpty(double[] array) |
static boolean |
isNotEmpty(float[] array) |
static boolean |
isNotEmpty(int[] array) |
static boolean |
isNotEmpty(long[] array) |
static boolean |
isNotEmpty(short[] array) |
static <T> boolean |
isNotEmpty(T[] array)
Checks if an array is NOT empty or null.
|
static int |
length(boolean[] array) |
static int |
length(byte[] array) |
static int |
length(char[] array) |
static int |
length(Collection<?> array) |
static int |
length(double[] array) |
static int |
length(float[] array) |
static int |
length(int[] array) |
static int |
length(long[] array) |
static int |
length(Map<?,?> map) |
static int |
length(short[] array) |
static <T> int |
length(T[] array) |
static boolean[] |
slice(boolean[] values,
int startIndexInclusive) |
static boolean[] |
slice(boolean[] values,
int startIndexInclusive,
int endIndexExclusive) |
static byte[] |
slice(byte[] values,
int startIndexInclusive) |
static byte[] |
slice(byte[] values,
int startIndexInclusive,
int endIndexExclusive) |
static char[] |
slice(char[] values,
int startIndexInclusive) |
static char[] |
slice(char[] values,
int startIndexInclusive,
int endIndexExclusive) |
static double[] |
slice(double[] values,
int startIndexInclusive) |
static double[] |
slice(double[] values,
int startIndexInclusive,
int endIndexExclusive) |
static float[] |
slice(float[] values,
int startIndexInclusive) |
static float[] |
slice(float[] values,
int startIndexInclusive,
int endIndexExclusive) |
static int[] |
slice(int[] values,
int startIndexInclusive) |
static int[] |
slice(int[] values,
int startIndexInclusive,
int endIndexExclusive) |
static long[] |
slice(long[] values,
int startIndexInclusive) |
static long[] |
slice(long[] values,
int startIndexInclusive,
int endIndexExclusive) |
static short[] |
slice(short[] values,
int startIndexInclusive) |
static short[] |
slice(short[] values,
int startIndexInclusive,
int endIndexExclusive) |
static <T> T[] |
slice(T[] values,
int startIndexInclusive) |
static <T> T[] |
slice(T[] values,
int startIndexInclusive,
int endIndexExclusive) |
public static <T> boolean isEmpty(T[] array)
array - the array to testpublic static boolean isEmpty(Collection<?> array)
public static boolean isEmpty(byte[] array)
public static boolean isEmpty(char[] array)
public static boolean isEmpty(short[] array)
public static boolean isEmpty(int[] array)
public static boolean isEmpty(long[] array)
public static boolean isEmpty(float[] array)
public static boolean isEmpty(double[] array)
public static boolean isEmpty(boolean[] array)
public static <T> boolean isNotEmpty(T[] array)
array - the array to testpublic static boolean isNotEmpty(Collection<?> array)
public static boolean isNotEmpty(byte[] array)
public static boolean isNotEmpty(char[] array)
public static boolean isNotEmpty(short[] array)
public static boolean isNotEmpty(int[] array)
public static boolean isNotEmpty(long[] array)
public static boolean isNotEmpty(float[] array)
public static boolean isNotEmpty(double[] array)
public static boolean isNotEmpty(boolean[] array)
public static <T> int length(T[] array)
public static int length(Collection<?> array)
public static int length(Map<?,?> map)
public static int length(byte[] array)
public static int length(char[] array)
public static int length(short[] array)
public static int length(int[] array)
public static int length(long[] array)
public static int length(float[] array)
public static int length(double[] array)
public static int length(boolean[] array)
public static <T> T[] slice(T[] values,
int startIndexInclusive)
public static byte[] slice(byte[] values,
int startIndexInclusive)
public static char[] slice(char[] values,
int startIndexInclusive)
public static short[] slice(short[] values,
int startIndexInclusive)
public static int[] slice(int[] values,
int startIndexInclusive)
public static long[] slice(long[] values,
int startIndexInclusive)
public static float[] slice(float[] values,
int startIndexInclusive)
public static double[] slice(double[] values,
int startIndexInclusive)
public static boolean[] slice(boolean[] values,
int startIndexInclusive)
public static <T> T[] slice(T[] values,
int startIndexInclusive,
int endIndexExclusive)
public static byte[] slice(byte[] values,
int startIndexInclusive,
int endIndexExclusive)
public static char[] slice(char[] values,
int startIndexInclusive,
int endIndexExclusive)
public static short[] slice(short[] values,
int startIndexInclusive,
int endIndexExclusive)
public static int[] slice(int[] values,
int startIndexInclusive,
int endIndexExclusive)
public static long[] slice(long[] values,
int startIndexInclusive,
int endIndexExclusive)
public static float[] slice(float[] values,
int startIndexInclusive,
int endIndexExclusive)
public static double[] slice(double[] values,
int startIndexInclusive,
int endIndexExclusive)
public static boolean[] slice(boolean[] values,
int startIndexInclusive,
int endIndexExclusive)
Copyright © 2004–2019 OpenL Tablets. All rights reserved.