public class ContainerUtilRt
extends java.lang.Object
ContainerUtil
.
Intended to use by external (out-of-IDE-process) runners and helpers so it should not contain any library dependencies.Constructor and Description |
---|
ContainerUtilRt() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
addIfNotNull(java.util.Collection<? super T> result,
T element)
Deprecated.
|
static <T> java.util.List<T> |
emptyList()
Deprecated.
|
static <T,V> java.util.List<V> |
map2List(java.util.Collection<? extends T> collection,
Function<? super T,? extends V> mapper)
Deprecated.
|
static <T> java.util.ArrayList<T> |
newArrayList()
Deprecated.
Use
ArrayList() instead |
static <T> java.util.ArrayList<T> |
newArrayList(java.util.Collection<? extends T> elements)
Deprecated.
Use
ArrayList(Collection) instead |
static <T> java.util.ArrayList<T> |
newArrayList(java.lang.Iterable<? extends T> elements)
Deprecated.
Use
ContainerUtil.newArrayList(Iterable) instead |
static <T> java.util.ArrayList<T> |
newArrayList(T... elements)
Deprecated.
Use
ContainerUtil.newArrayList(Object[]) instead |
static <K,V> java.util.HashMap<K,V> |
newHashMap()
Deprecated.
Use
HashMap() |
static <K,V> java.util.Map<K,V> |
newHashMap(int initialCapacity)
Deprecated.
Use
HashMap(int) |
static <K,V> java.util.HashMap<K,V> |
newHashMap(java.util.Map<? extends K,? extends V> map)
Deprecated.
Use
HashMap(Map) |
static <T> java.util.HashSet<T> |
newHashSet()
Deprecated.
Use
HashSet(int) |
static <T> java.util.HashSet<T> |
newHashSet(java.lang.Iterable<? extends T> elements) |
static <T> java.util.HashSet<T> |
newHashSet(T... elements)
Deprecated.
|
static <T> java.util.LinkedHashSet<T> |
newLinkedHashSet(T... elements)
Deprecated.
|
static <T> java.util.LinkedList<T> |
newLinkedList(java.util.Collection<? extends T> elements)
Deprecated.
Use
LinkedList(Collection) instead. |
static <T> java.util.LinkedList<T> |
newLinkedList(java.lang.Iterable<? extends T> elements)
Use only for
Iterable , for Collection please use LinkedList(Collection) directly. |
static <T extends java.lang.Comparable<? super T>> |
newTreeSet()
Deprecated.
Use
TreeSet() |
static <K,V> void |
putValue(K key,
V value,
java.util.Map<K,java.util.List<V>> map) |
@Deprecated public static <K,V> java.util.Map<K,V> newHashMap(int initialCapacity)
HashMap(int)
@Deprecated public static <K,V> java.util.HashMap<K,V> newHashMap()
HashMap()
@Deprecated public static <K,V> java.util.HashMap<K,V> newHashMap(java.util.Map<? extends K,? extends V> map)
HashMap(Map)
public static <T> java.util.LinkedList<T> newLinkedList(java.lang.Iterable<? extends T> elements)
Iterable
, for Collection
please use LinkedList(Collection)
directly.@Deprecated public static <T> java.util.LinkedList<T> newLinkedList(java.util.Collection<? extends T> elements)
LinkedList(Collection)
instead.@Deprecated public static <T> java.util.ArrayList<T> newArrayList()
ArrayList()
instead@Deprecated public static <T> java.util.ArrayList<T> newArrayList(T... elements)
ContainerUtil.newArrayList(Object[])
instead@Deprecated public static <T> java.util.ArrayList<T> newArrayList(java.lang.Iterable<? extends T> elements)
ContainerUtil.newArrayList(Iterable)
instead@Deprecated public static <T> java.util.ArrayList<T> newArrayList(java.util.Collection<? extends T> elements)
ArrayList(Collection)
instead@Deprecated public static <T> java.util.HashSet<T> newHashSet()
HashSet(int)
@Deprecated public static <T> java.util.HashSet<T> newHashSet(T... elements)
ContainerUtil.newHashSet(Object[])
public static <T> java.util.HashSet<T> newHashSet(java.lang.Iterable<? extends T> elements)
@Deprecated public static <T> java.util.LinkedHashSet<T> newLinkedHashSet(T... elements)
ContainerUtil.newLinkedHashSet(Object[])
@Deprecated public static <T extends java.lang.Comparable<? super T>> java.util.TreeSet<T> newTreeSet()
TreeSet()
@Deprecated public static <T> java.util.List<T> emptyList()
ContainerUtil.emptyList()
@Deprecated public static <T> void addIfNotNull(java.util.Collection<? super T> result, T element)
ContainerUtil.addIfNotNull(Collection, Object)
@Deprecated public static <T,V> java.util.List<V> map2List(java.util.Collection<? extends T> collection, Function<? super T,? extends V> mapper)
ContainerUtil.map2List(Collection, Function)
public static <K,V> void putValue(K key, V value, java.util.Map<K,java.util.List<V>> map)