edu.harvard.seas.iis.util.collections
Class ListUtils

java.lang.Object
  extended by edu.harvard.seas.iis.util.collections.ListUtils

public class ListUtils
extends java.lang.Object

Author:
kgajos Some common utilities for manipulating lists

Constructor Summary
ListUtils()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.util.List shuffle(java.util.List list)
          Shuffles the elements of the list; it shuffles them in place.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUtils

public ListUtils()
Method Detail

shuffle

public static java.util.List shuffle(java.util.List list)
Shuffles the elements of the list; it shuffles them in place. The returned list is actually the same object as the argument -- it is returned just for convenience.

Parameters:
list - a list whose elements are to be shuffled
Returns:
the same list with its elements in random order

main

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