@Test void mutableOf() { List<String> list = Lists.mutableOf("a", "b"); list.add("c"); Assertions.assertEquals(Arrays.asList("a", "b", "c"), list); }
@SafeVarargs public static <T> List<T> mutableOf(T... elements) { return new ArrayList<>(Arrays.asList(elements)); }
Lists { @SafeVarargs public static <T> List<T> mutableOf(T... elements) { return new ArrayList<>(Arrays.asList(elements)); } }
Lists { @SafeVarargs public static <T> List<T> mutableOf(T... elements) { return new ArrayList<>(Arrays.asList(elements)); }  }
Lists { @SafeVarargs public static <T> List<T> mutableOf(T... elements) { return new ArrayList<>(Arrays.asList(elements)); }  static T add(Collection<T> list, T element); static List<T> subList(List<T> list, int startIndex); static ArrayList<T> subList(List<T> list, int startIndex, int endIndex); @SafeVarargs static void sort(Comparator<T> comparator, List<? extends T>... collections); static List<T> reverse(List<T> list); static List<T>[] split(List<T> list, T delimiter); @SafeVarargs static List<T> mutableOf(T... elements); static T get(List<T> list, int index); }
Lists { @SafeVarargs public static <T> List<T> mutableOf(T... elements) { return new ArrayList<>(Arrays.asList(elements)); }  static T add(Collection<T> list, T element); static List<T> subList(List<T> list, int startIndex); static ArrayList<T> subList(List<T> list, int startIndex, int endIndex); @SafeVarargs static void sort(Comparator<T> comparator, List<? extends T>... collections); static List<T> reverse(List<T> list); static List<T>[] split(List<T> list, T delimiter); @SafeVarargs static List<T> mutableOf(T... elements); static T get(List<T> list, int index);  }