java.lang.Object
com.intellij.util.containers.ContainerUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> voidaddIfNotNull(@NotNull Collection<? super T> result, T element) static <T> @NotNull T[]ar(@NotNull T... elements) static <T> @NotNull List<T>static <T> TgetLastItem(@Nullable List<? extends T> list) static <T> TgetLastItem(@Nullable List<? extends T> list, T def) static <T> booleanisEmpty(@Nullable Collection<? extends T> collection) static <T,V> @NotNull V[] map2Array(@NotNull T[] array, @NotNull Class<V> aClass, @NotNull Function<? super T, ? extends V> mapper) static <T> @NotNull ArrayList<T>static <E> @NotNull ArrayList<E>newArrayList(@NotNull Iterable<? extends E> iterable) static <T> @NotNull List<T>newArrayList(@NotNull T[] elements, int start, int end) static <K,V> @NotNull ConcurrentMap<K, V> static <T> @NotNull Set<T>static <K,V> @NotNull HashMap<K, V> static <K,V> @NotNull HashMap<K, V> newHashMap(@NotNull Map<? extends K, ? extends V> map) static <T> @NotNull HashSet<T>static <T> voidsort(@NotNull List<T> list, @NotNull Comparator<? super T> comparator) static <T> voidsort(@NotNull T[] a, @NotNull Comparator<? super T> comparator) static <T> @NotNull List<T>sorted(@NotNull Iterable<? extends T> list, @NotNull Comparator<? super T> comparator) static <T extends Comparable<? super T>>
@NotNull List<T>sorted(@NotNull Collection<? extends T> list) static <T> @NotNull List<T>sorted(@NotNull Collection<? extends T> list, @NotNull Comparator<? super T> comparator)
-
构造器详细资料
-
ContainerUtil
public ContainerUtil()
-
-
方法详细资料
-
ar
@SafeVarargs @NotNull @Contract(pure=true) public static <T> @NotNull T[] ar(@NotNull @NotNull T... elements) -
newHashMap
-
newHashMap
-
newArrayList
-
newArrayList
-
newArrayList
@NotNull @Contract(pure=true) public static <T> @NotNull List<T> newArrayList(@NotNull @NotNull T[] elements, int start, int end) -
newHashSet
-
newConcurrentSet
-
newConcurrentMap
-
map2Array
-
getLastItem
@Contract(pure=true) public static <T> T getLastItem(@Nullable @Nullable List<? extends T> list, @Nullable T def) -
getLastItem
-
isEmpty
@Contract(value="null -> true", pure=true) public static <T> boolean isEmpty(@Nullable @Nullable Collection<? extends T> collection) -
sorted
@NotNull @Contract(pure=true) public static <T> @NotNull List<T> sorted(@NotNull @NotNull Collection<? extends T> list, @NotNull @NotNull Comparator<? super T> comparator) -
sorted
@NotNull @Contract(pure=true) public static <T> @NotNull List<T> sorted(@NotNull @NotNull Iterable<? extends T> list, @NotNull @NotNull Comparator<? super T> comparator) -
sorted
@NotNull @Contract(pure=true) public static <T extends Comparable<? super T>> @NotNull List<T> sorted(@NotNull @NotNull Collection<? extends T> list) -
sort
public static <T> void sort(@NotNull @NotNull List<T> list, @NotNull @NotNull Comparator<? super T> comparator) -
sort
public static <T> void sort(@NotNull @NotNull T[] a, @NotNull @NotNull Comparator<? super T> comparator) -
createLockFreeCopyOnWriteList
@NotNull @Contract(value=" -> new", pure=true) public static <T> @NotNull List<T> createLockFreeCopyOnWriteList() -
addIfNotNull
public static <T> void addIfNotNull(@NotNull @NotNull Collection<? super T> result, @Nullable T element)
-