|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mockrunner.util.common.CollectionUtil
public class CollectionUtil
Util class for collections
| Constructor Summary | |
|---|---|
CollectionUtil()
|
|
| Method Summary | |
|---|---|
static void |
fillList(java.util.List list,
int size)
Fills a List with null
by calling fillList(List, int, Object)
with a null object. |
static void |
fillList(java.util.List list,
int size,
java.lang.Object object)
Fills a List with with the specified object
until it has the specified size. |
static java.util.List |
truncateList(java.util.List list,
int len)
Returns a truncated version of the specified List. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionUtil()
| Method Detail |
|---|
public static void fillList(java.util.List list,
int size)
List with null
by calling fillList(List, int, Object)
with a null object.
list - the List that should be filledsize - the resulting size of the List
public static void fillList(java.util.List list,
int size,
java.lang.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 List
public static java.util.List truncateList(java.util.List list,
int len)
List.
list - the Listlen - the truncate length
List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||