com.mizar.commons.collections
Class ListUtils

java.lang.Object
  extended by org.apache.commons.collections.ListUtils
      extended by com.mizar.commons.collections.ListUtils

public class ListUtils
extends org.apache.commons.collections.ListUtils


Field Summary
 
Fields inherited from class org.apache.commons.collections.ListUtils
EMPTY_LIST
 
Constructor Summary
protected ListUtils()
           
 
Method Summary
static int decrementPosition(java.util.List list, java.lang.Object row)
           
static double[] getDoubleArray(java.util.List<java.lang.Double> values)
          This method exists because sometimes we need double[] and not Double[] which is what List.toArray(new Double[size]) would return
static int[] getIntArray(java.util.List<java.lang.Integer> values)
          This method exists because sometimes we need int[] and not Integer[] which is what List.toArray(new Integer[size]) would return
static java.util.ArrayList getList(java.util.Map map)
           
static java.util.List<java.lang.String> getList(java.lang.String tokens)
           
static java.util.List<java.lang.String> getList(java.lang.String tokens, java.lang.String deliminator)
          Method tokenize a String into a List.
static java.util.List getSortedKeys(java.util.Map map)
           
static int incrementPosition(java.util.List list, java.lang.Object row)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.apache.commons.collections.ListUtils
fixedSizeList, hashCodeForList, intersection, isEqualList, lazyList, predicatedList, removeAll, retainAll, subtract, sum, synchronizedList, transformedList, typedList, union, unmodifiableList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUtils

protected ListUtils()
Method Detail

getList

public static java.util.List<java.lang.String> getList(java.lang.String tokens)

getDoubleArray

public static double[] getDoubleArray(java.util.List<java.lang.Double> values)
This method exists because sometimes we need double[] and not Double[] which is what List.toArray(new Double[size]) would return

Parameters:
values -
Returns:

getIntArray

public static int[] getIntArray(java.util.List<java.lang.Integer> values)
This method exists because sometimes we need int[] and not Integer[] which is what List.toArray(new Integer[size]) would return

Parameters:
values -
Returns:

getList

public static java.util.List<java.lang.String> getList(java.lang.String tokens,
                                                       java.lang.String deliminator)
Method tokenize a String into a List. The default deliminator is comma (,) if no deliminator is supplied.

Parameters:
tokens -
deliminator -
Returns:

getList

public static java.util.ArrayList getList(java.util.Map map)

getSortedKeys

public static java.util.List getSortedKeys(java.util.Map map)

decrementPosition

public static int decrementPosition(java.util.List list,
                                    java.lang.Object row)

incrementPosition

public static int incrementPosition(java.util.List list,
                                    java.lang.Object row)

main

public static void main(java.lang.String[] args)