public final class ListUtils extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Integer> |
createList(int[] values) |
static <T> java.util.List<T> |
createList(int n,
java.lang.Class<T> cls)
Create a new list with n copies of new instances of the given class
|
static boolean |
isEmpty(java.util.Collection<?> items) |
public static <T> java.util.List<T> createList(int n, java.lang.Class<T> cls)
n
- cls
- java.lang.IllegalArgumentException
- if the classes cannot be instantiatedpublic static boolean isEmpty(java.util.Collection<?> items)
items
- public static java.util.List<java.lang.Integer> createList(int[] values)
values
- Copyright © 2015 Tampere University of Technology, Pori Department.