Constructor and Description |
---|
ListUtils() |
Modifier and Type | Method and Description |
---|---|
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 <T> boolean |
equalElements(List<T> list1,
List<T> list2) |
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) |
static List<String> |
prefix(String prefix,
List<String> list) |
static List<String> |
prefix(String prefix,
String separator,
List<String> list) |
public ListUtils()
public static <T> boolean equalElements(List<T> list1, List<T> list2)
public static <T> List<T> newArrayList()
public static <T> List<T> newArrayList(T element)
public static <T> List<T> newArrayList(List<T> list)
public static <T> List<T> newImmutableArrayList(List<T> list)
public static <T> List<T> newArrayList(List<T> list, boolean immutable)
public static void assertUniformRuntimeType(List<?> list)
list
is not null.list
is not empty. (size() > 0)list
does not contain null
.list
is the exact same runtime type.public static boolean equalsIgnoreCase(List<String> one, List<String> two)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.