|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evanmclean.evlib.lang.Arr
public final class Arr
Misc functions for various array related operations.
Method Summary | ||
---|---|---|
static boolean[] |
arr(boolean... args)
Returns a variable number of arguments as an array. |
|
static byte[] |
arr(byte... args)
Returns a variable number of arguments as an array. |
|
static char[] |
arr(char... args)
Returns a variable number of arguments as an array. |
|
static double[] |
arr(double... args)
Returns a variable number of arguments as an array. |
|
static float[] |
arr(float... args)
Returns a variable number of arguments as an array. |
|
static int[] |
arr(int... args)
Returns a variable number of arguments as an array. |
|
static long[] |
arr(long... args)
Returns a variable number of arguments as an array. |
|
static short[] |
arr(short... args)
Returns a variable number of arguments as an array. |
|
static
|
arr(T... args)
Returns a variable number of arguments as an array. |
|
static boolean |
isEmpty(boolean[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isEmpty(byte[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isEmpty(char[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isEmpty(double[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isEmpty(float[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isEmpty(int[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isEmpty(long[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isEmpty(short[] arr)
Return true if the array is of zero length or null; |
|
static
|
isEmpty(T[] arr)
Return true if the array is of zero length or null; |
|
static boolean |
isNotEmpty(boolean[] arr)
Return true if the array is not null and not of zero length. |
|
static boolean |
isNotEmpty(byte[] arr)
Return true if the array is not null and not of zero length. |
|
static boolean |
isNotEmpty(char[] arr)
Return true if the array is not null and not of zero length. |
|
static boolean |
isNotEmpty(double[] arr)
Return true if the array is not null and not of zero length. |
|
static boolean |
isNotEmpty(float[] arr)
Return true if the array is not null and not of zero length. |
|
static boolean |
isNotEmpty(int[] arr)
Return true if the array is not null and not of zero length. |
|
static boolean |
isNotEmpty(long[] arr)
Return true if the array is not null and not of zero length. |
|
static boolean |
isNotEmpty(short[] arr)
Return true if the array is not null and not of zero length. |
|
static
|
isNotEmpty(T[] arr)
Return true if the array is not null and not of zero length. |
|
static int |
length(boolean[] arr)
Return the length of the array (zero for null). |
|
static int |
length(byte[] arr)
Return the length of the array (zero for null). |
|
static int |
length(char[] arr)
Return the length of the array (zero for null). |
|
static int |
length(double[] arr)
Return the length of the array (zero for null). |
|
static int |
length(float[] arr)
Return the length of the array (zero for null). |
|
static int |
length(int[] arr)
Return the length of the array (zero for null). |
|
static int |
length(long[] arr)
Return the length of the array (zero for null). |
|
static int |
length(short[] arr)
Return the length of the array (zero for null). |
|
static
|
length(T[] arr)
Return the length of the array (zero for null). |
|
static boolean[] |
nullIfEmpty(boolean[] arr)
Return the array if is not null and not empty (zero length). |
|
static byte[] |
nullIfEmpty(byte[] arr)
Return the array if is not null and not empty (zero length). |
|
static char[] |
nullIfEmpty(char[] arr)
Return the array if is not null and not empty (zero length). |
|
static double[] |
nullIfEmpty(double[] arr)
Return the array if is not null and not empty (zero length). |
|
static float[] |
nullIfEmpty(float[] arr)
Return the array if is not null and not empty (zero length). |
|
static int[] |
nullIfEmpty(int[] arr)
Return the array if is not null and not empty (zero length). |
|
static long[] |
nullIfEmpty(long[] arr)
Return the array if is not null and not empty (zero length). |
|
static short[] |
nullIfEmpty(short[] arr)
Return the array if is not null and not empty (zero length). |
|
static
|
nullIfEmpty(T[] arr)
Return the array if is not null and not empty (zero length). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean[] arr(boolean... args)
args
- The values to return as an array.
public static byte[] arr(byte... args)
args
- The values to return as an array.
public static char[] arr(char... args)
args
- The values to return as an array.
public static double[] arr(double... args)
args
- The values to return as an array.
public static float[] arr(float... args)
args
- The values to return as an array.
public static int[] arr(int... args)
args
- The values to return as an array.
public static long[] arr(long... args)
args
- The values to return as an array.
public static short[] arr(short... args)
args
- The values to return as an array.
public static <T> T[] arr(T... args)
T
- Type of arguments array to return.args
- The objects to return as an array.
public static boolean isEmpty(boolean[] arr)
arr
-
null
.public static boolean isEmpty(byte[] arr)
arr
-
null
.public static boolean isEmpty(char[] arr)
arr
-
null
.public static boolean isEmpty(double[] arr)
arr
-
null
.public static boolean isEmpty(float[] arr)
arr
-
null
.public static boolean isEmpty(int[] arr)
arr
-
null
.public static boolean isEmpty(long[] arr)
arr
-
null
.public static boolean isEmpty(short[] arr)
arr
-
null
.public static <T> boolean isEmpty(T[] arr)
T
- arr
-
null
.public static boolean isNotEmpty(boolean[] arr)
arr
-
public static boolean isNotEmpty(byte[] arr)
arr
-
public static boolean isNotEmpty(char[] arr)
arr
-
public static boolean isNotEmpty(double[] arr)
arr
-
public static boolean isNotEmpty(float[] arr)
arr
-
public static boolean isNotEmpty(int[] arr)
arr
-
public static boolean isNotEmpty(long[] arr)
arr
-
public static boolean isNotEmpty(short[] arr)
arr
-
public static <T> boolean isNotEmpty(T[] arr)
T
- arr
-
public static int length(boolean[] arr)
arr
-
arr
is
null
.public static int length(byte[] arr)
arr
-
arr
is
null
.public static int length(char[] arr)
arr
-
arr
is
null
.public static int length(double[] arr)
arr
-
arr
is
null
.public static int length(float[] arr)
arr
-
arr
is
null
.public static int length(int[] arr)
arr
-
arr
is
null
.public static int length(long[] arr)
arr
-
arr
is
null
.public static int length(short[] arr)
arr
-
arr
is
null
.public static <T> int length(T[] arr)
T
- arr
-
arr
is
null
.public static boolean[] nullIfEmpty(boolean[] arr)
arr
-
public static byte[] nullIfEmpty(byte[] arr)
arr
-
public static char[] nullIfEmpty(char[] arr)
arr
-
public static double[] nullIfEmpty(double[] arr)
arr
-
public static float[] nullIfEmpty(float[] arr)
arr
-
public static int[] nullIfEmpty(int[] arr)
arr
-
public static long[] nullIfEmpty(long[] arr)
arr
-
public static short[] nullIfEmpty(short[] arr)
arr
-
public static <T> T[] nullIfEmpty(T[] arr)
arr
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |