public final class CollectionUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getFromList(int index,
List<T> fromList)
Gets an element from a list based on the index.
|
static boolean |
validIndexForList(int index,
List<?> forList)
Checks if a given index is valid for a given list.
|
public static boolean validIndexForList(int index,
List<?> forList)
index - the indexforList - the listpublic static <T> T getFromList(int index,
List<T> fromList)
T - the type of Listindex - the indexfromList - the list to retrieve fromCopyright © 2013 The Kuali Foundation. All Rights Reserved.