public class CollectionUtil extends Object
| Constructor and Description |
|---|
CollectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fillList(List list,
int size)
|
static void |
fillList(List list,
int size,
Object object)
Fills a
List with with the specified object
until it has the specified size. |
static List |
truncateList(List list,
int len)
Returns a truncated version of the specified
List. |
public static void fillList(List list, int size)
list - the List that should be filledsize - the resulting size of the Listpublic static void fillList(List list, int size, Object object)
List with with the specified object
until it has the specified size. If the specified size is
equal or lower the List size, nothing happens.list - the List that should be filledsize - the resulting size of the ListCopyright © 2003-2014. All Rights Reserved.