@Test public void testCreate() { final List<Integer> create = Lists.create(1); assertThat(create, is(notNullValue())); assertThat(create.size(), is(1)); assertThat(create, hasItem(1)); }
public static <T> List<T> create(final T item) { final List<T> list = new ArrayList<T>(); list.add(item); return list; }
Lists { public static <T> List<T> create(final T item) { final List<T> list = new ArrayList<T>(); list.add(item); return list; } }
Lists { public static <T> List<T> create(final T item) { final List<T> list = new ArrayList<T>(); list.add(item); return list; } private  Lists(); }
Lists { public static <T> List<T> create(final T item) { final List<T> list = new ArrayList<T>(); list.add(item); return list; } private  Lists(); static List<T> createWhenNull(final List<T> list); static List<T> create(final T item); static T firstEntry(final List<T> list); static boolean isEmpty(final List<?> list); static boolean isNotEmpty(final List<?> list); static boolean sizeIs(final List<?> list, final int size); static List<T> emptyToNull(final List<T> list); }
Lists { public static <T> List<T> create(final T item) { final List<T> list = new ArrayList<T>(); list.add(item); return list; } private  Lists(); static List<T> createWhenNull(final List<T> list); static List<T> create(final T item); static T firstEntry(final List<T> list); static boolean isEmpty(final List<?> list); static boolean isNotEmpty(final List<?> list); static boolean sizeIs(final List<?> list, final int size); static List<T> emptyToNull(final List<T> list);  }