org.kuali.common.util
Class ListUtils
java.lang.Object
org.kuali.common.util.ListUtils
public class ListUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListUtils
public ListUtils()
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.