@Test public void asList() throws Exception { final int[] ints = IntStream.range(0, 5).toArray(); final List<Integer> expected = IntStream.range(0, 5).boxed().collect(Collectors.toList()); Assert.assertEquals(expected, CollectionUtils.asList(ints)); }
public static List<Integer> asList(int... ids) { final List<Integer> result = new ArrayList<>(ids.length); for (int id : ids) { result.add(id); } return result; }
CollectionUtils { public static List<Integer> asList(int... ids) { final List<Integer> result = new ArrayList<>(ids.length); for (int id : ids) { result.add(id); } return result; } }
CollectionUtils { public static List<Integer> asList(int... ids) { final List<Integer> result = new ArrayList<>(ids.length); for (int id : ids) { result.add(id); } return result; } private  CollectionUtils(); }
CollectionUtils { public static List<Integer> asList(int... ids) { final List<Integer> result = new ArrayList<>(ids.length); for (int id : ids) { result.add(id); } return result; } private  CollectionUtils(); static ArrayList<L> filter(List<L> list, Predicate<L> predicate); static ArrayList<T> map(List<G> input, Function1<T, G> function); static Set<T> map(Set<G> input, Function1<T, G> function); static boolean isNullOrEmpty(Collection<?> input); static List<Integer> asList(int... ids); static Set<T> asSet(T... items); }
CollectionUtils { public static List<Integer> asList(int... ids) { final List<Integer> result = new ArrayList<>(ids.length); for (int id : ids) { result.add(id); } return result; } private  CollectionUtils(); static ArrayList<L> filter(List<L> list, Predicate<L> predicate); static ArrayList<T> map(List<G> input, Function1<T, G> function); static Set<T> map(Set<G> input, Function1<T, G> function); static boolean isNullOrEmpty(Collection<?> input); static List<Integer> asList(int... ids); static Set<T> asSet(T... items);  }