| java.lang.Object com.mockrunner.util.common.CollectionUtil
CollectionUtil | public class CollectionUtil (Code) | | Util class for collections
|
fillList | public static void fillList(List list, int size)(Code) | | Fills a List with null
by calling
CollectionUtil.fillList(List,int,Object) with a null object.
Parameters: list - the List that should be filled Parameters: size - the resulting size of the List |
fillList | public static void fillList(List list, int size, Object object)(Code) | | Fills a 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.
Parameters: list - the List that should be filled Parameters: size - the resulting size of the List |
truncateList | public static List truncateList(List list, int len)(Code) | | Returns a truncated version of the specified List .
Parameters: list - the List Parameters: len - the truncate length the truncated List |
|
|