[COLLECTIONS-351] Remove EMPTY_LIST, EMPTY_SET and EMPTY_MAP.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1457540 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0de81d9e4c
commit
dcda42acf5
|
@ -23,7 +23,6 @@ import java.util.Collections;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.apache.commons.collections.bag.HashBag;
|
import org.apache.commons.collections.bag.HashBag;
|
||||||
import org.apache.commons.collections.list.FixedSizeList;
|
import org.apache.commons.collections.list.FixedSizeList;
|
||||||
|
@ -40,13 +39,6 @@ import org.apache.commons.collections.list.UnmodifiableList;
|
||||||
*/
|
*/
|
||||||
public class ListUtils {
|
public class ListUtils {
|
||||||
|
|
||||||
/**
|
|
||||||
* An empty unmodifiable list.
|
|
||||||
* This uses the {@link Collections Collections} implementation
|
|
||||||
* and is provided for completeness.
|
|
||||||
*/
|
|
||||||
public static final List<Object> EMPTY_LIST = Collections.<Object>emptyList();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>ListUtils</code> should not normally be instantiated.
|
* <code>ListUtils</code> should not normally be instantiated.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -76,12 +76,6 @@ import org.apache.commons.collections.map.UnmodifiableSortedMap;
|
||||||
*/
|
*/
|
||||||
public class MapUtils {
|
public class MapUtils {
|
||||||
|
|
||||||
/**
|
|
||||||
* An empty unmodifiable map.
|
|
||||||
* This was not provided in JDK1.2.
|
|
||||||
*/
|
|
||||||
public static final Map<Object, Object> EMPTY_MAP = UnmodifiableMap.unmodifiableMap(new HashMap<Object, Object>(1));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An empty unmodifiable sorted map.
|
* An empty unmodifiable sorted map.
|
||||||
* This is not provided in the JDK.
|
* This is not provided in the JDK.
|
||||||
|
|
|
@ -39,13 +39,6 @@ import org.apache.commons.collections.set.UnmodifiableSortedSet;
|
||||||
*/
|
*/
|
||||||
public class SetUtils {
|
public class SetUtils {
|
||||||
|
|
||||||
/**
|
|
||||||
* An empty unmodifiable set.
|
|
||||||
* This uses the {@link Collections} implementation
|
|
||||||
* and is provided for completeness.
|
|
||||||
*/
|
|
||||||
public static final Set<?> EMPTY_SET = Collections.EMPTY_SET;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a typed empty unmodifiable Set.
|
* Get a typed empty unmodifiable Set.
|
||||||
* @param <E> the element type
|
* @param <E> the element type
|
||||||
|
|
Loading…
Reference in New Issue