org.kuali.common.util
Class ListUtils

java.lang.Object
  extended by org.kuali.common.util.ListUtils

public class ListUtils
extends Object


Constructor Summary
ListUtils()
           
 
Method Summary
static void assertUniformRuntimeType(List<?> list)
          This method guarantees 4 things:
1 - The list is not null.
2 - The list is not empty.
protected static boolean equal(String one, String two, boolean ignoreCase)
           
static boolean equals(List<String> one, List<String> two)
           
protected static boolean equals(List<String> one, List<String> two, boolean ignoreCase)
           
static boolean equalsIgnoreCase(List<String> one, List<String> two)
           
static
<T> List<T>
newArrayList()
           
static
<T> List<T>
newArrayList(List<T> list)
           
static
<T> List<T>
newArrayList(List<T> list, boolean immutable)
           
static
<T> List<T>
newArrayList(T element)
           
static
<T> List<T>
newImmutableArrayList(List<T> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUtils

public ListUtils()
Method Detail

newArrayList

public static <T> List<T> newArrayList()

newArrayList

public static <T> List<T> newArrayList(T element)

newArrayList

public static <T> List<T> newArrayList(List<T> list)

newImmutableArrayList

public static <T> List<T> newImmutableArrayList(List<T> list)

newArrayList

public static <T> List<T> newArrayList(List<T> list,
                                       boolean immutable)

assertUniformRuntimeType

public static void assertUniformRuntimeType(List<?> list)
This method guarantees 4 things:
1 - The list is not null.
2 - The list is not empty. (size() > 0)
3 - The list does not contain null.
4 - Every element in the list is the exact same runtime type.


equals

public static boolean equals(List<String> one,
                             List<String> two)

equalsIgnoreCase

public static boolean equalsIgnoreCase(List<String> one,
                                       List<String> two)

equals

protected static boolean equals(List<String> one,
                                List<String> two,
                                boolean ignoreCase)

equal

protected static boolean equal(String one,
                               String two,
                               boolean ignoreCase)


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.