|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.util.NullUtils
Contains some functions for use with null values.
Constructor Summary | |
NullUtils()
Creates new NullUtils |
Method Summary | |
static boolean |
isArrayNull(java.lang.Object[] arr)
Checks if an array is made only of null objects. |
static boolean |
isListNull(java.util.List lst)
Checks if a list contains only null objects. |
static java.lang.Object[] |
nullArray(int count)
Returns an array of null objects. |
static java.util.List |
nullList(int count)
A List of null objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullUtils()
Method Detail |
public static java.lang.Object[] nullArray(int count)
count
- How many objects in the array?
public static java.util.List nullList(int count)
count
- How many objects do you want?
public static boolean isArrayNull(java.lang.Object[] arr)
arr
- The array to check.
true
: the array contains only null objects;
false
: otherwise.public static boolean isListNull(java.util.List lst)
lst
- The list to check.
true
: the list contains only null objects;
false
: otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |