javatools.util
Class NullUtils

java.lang.Object
  |
  +--javatools.util.NullUtils

public class NullUtils
extends java.lang.Object

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

NullUtils

public NullUtils()
Creates new NullUtils

Method Detail

nullArray

public static java.lang.Object[] nullArray(int count)
Returns an array of null objects.

Parameters:
count - How many objects in the array?
Returns:
The requested array.

nullList

public static java.util.List nullList(int count)
A List of null objects.

Parameters:
count - How many objects do you want?
Returns:
The requested list.

isArrayNull

public static boolean isArrayNull(java.lang.Object[] arr)
Checks if an array is made only of null objects.

Parameters:
arr - The array to check.
Returns:
true: the array contains only null objects; false: otherwise.

isListNull

public static boolean isListNull(java.util.List lst)
Checks if a list contains only null objects.

Parameters:
lst - The list to check.
Returns:
true: the list contains only null objects; false: otherwise.