@Deprecated
public class CollectionUtils
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
CollectionUtils.EmptyEnumeration<E> |
Deprecated.
|
Modifier and Type | Field | Description |
---|---|---|
static java.util.List |
EMPTY_LIST |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
static <E> java.util.Enumeration<E> |
append(java.util.Enumeration<E> e1,
java.util.Enumeration<E> e2) |
Deprecated.
use Stream.concat(Collections.list(e1).stream(), Collections.list(e2).stream())
.collect(Collectors.collectingAndThen(Collectors.toList(), Collections::enumeration))
|
static <T> java.util.Collection<T> |
asCollection(java.util.Iterator<? extends T> iter) |
Deprecated.
instantiate a list and use forEachRemaining(list::add)
|
static <E> java.util.Enumeration<E> |
asEnumeration(java.util.Iterator<E> iter) |
Deprecated.
use Collections.enumeration()
|
static <E> java.util.Iterator<E> |
asIterator(java.util.Enumeration<E> e) |
Deprecated.
use Collections.list(e).iterator()
|
static boolean |
equals(java.util.Dictionary<?,?> d1,
java.util.Dictionary<?,?> d2) |
Deprecated.
since 1.6.x.
|
static boolean |
equals(java.util.Vector<?> v1,
java.util.Vector<?> v2) |
Deprecated.
since 1.6.x.
|
static java.lang.String |
flattenToString(java.util.Collection<?> c) |
Deprecated.
use stream().collect(Collectors.joining(","))
|
static int |
frequency(java.util.Collection<?> c,
java.lang.Object o) |
Deprecated.
|
static <K,V> void |
putAll(java.util.Dictionary<? super K,? super V> m1,
java.util.Dictionary<? extends K,? extends V> m2) |
Deprecated.
since 1.6.x.
|
@Deprecated public static boolean equals(java.util.Vector<?> v1, java.util.Vector<?> v2)
v1
- the first vector.v2
- the second vector.@Deprecated public static boolean equals(java.util.Dictionary<?,?> d1, java.util.Dictionary<?,?> d2)
Follows the equals contract of Java 2's Map.
d1
- the first directory.d2
- the second directory.@Deprecated public static java.lang.String flattenToString(java.util.Collection<?> c)
c
- collection to transform@Deprecated public static <K,V> void putAll(java.util.Dictionary<? super K,? super V> m1, java.util.Dictionary<? extends K,? extends V> m2)
K
- type of the keyV
- type of the valuem1
- the to directory.m2
- the from directory.@Deprecated public static <E> java.util.Enumeration<E> append(java.util.Enumeration<E> e1, java.util.Enumeration<E> e2)
E
- element typee1
- the first enumeration.e2
- the subsequent enumeration.@Deprecated public static <E> java.util.Enumeration<E> asEnumeration(java.util.Iterator<E> iter)
E
- element typeiter
- the Iterator to adapt.@Deprecated public static <E> java.util.Iterator<E> asIterator(java.util.Enumeration<E> e)
E
- element typee
- the Enumeration to adapt.@Deprecated public static <T> java.util.Collection<T> asCollection(java.util.Iterator<? extends T> iter)
T
- element typeiter
- the Iterator to convert@Deprecated public static int frequency(java.util.Collection<?> c, java.lang.Object o)
c
- collection in which to searcho
- object to search