Top Fields Constructors Methods
com.mchange.v2.util

public final Class CollectionUtils

extends Object
Class Inheritance
Imports
java.util.*, java.lang.reflect.*

Field Summary

Modifier and TypeField and Description
pack-priv static final Set<E>
pack-priv static final Class<T>[]
pack-priv static final Class<T>[]
pack-priv static final Class<T>[]
pack-priv static final Object[]
public static final SortedSet<E>
pack-priv static final Class<T>[]
pack-priv static final Class<T>[]
pack-priv static final Class<T>[]
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Class<T>
pack-priv static final Set<E>
pack-priv static final Set<E>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static Collection<E>
attemptClone(Collection<E> c)

Attempts to find a public clone() method or a copy constructor, in that order, and calls what it finds.

public static Map<K, V>
attemptClone(Map<K, V> m)

Attempts to find a public clone() method or a copy constructor, in that order, and calls what it finds.

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static Collection<E>
public static Map<K, V>
public static Collection<E>
public static Map<K, V>
public static void
public static int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALL_COLLECTIONS_WRAPPERSback to summary
pack-priv static final Set<E> ALL_COLLECTIONS_WRAPPERS
COLLECTION_ARG_CLASSESback to summary
pack-priv static final Class<T>[] COLLECTION_ARG_CLASSES
COMPARATOR_ARG_CLASSESback to summary
pack-priv static final Class<T>[] COMPARATOR_ARG_CLASSES
EMPTY_ARG_CLASSESback to summary
pack-priv static final Class<T>[] EMPTY_ARG_CLASSES
EMPTY_ARGSback to summary
pack-priv static final Object[] EMPTY_ARGS
EMPTY_SORTED_SETback to summary
public static final SortedSet<E> EMPTY_SORTED_SET
MAP_ARG_CLASSESback to summary
pack-priv static final Class<T>[] MAP_ARG_CLASSES
SORTED_MAP_ARG_CLASSESback to summary
pack-priv static final Class<T>[] SORTED_MAP_ARG_CLASSES
SORTED_SET_ARG_CLASSESback to summary
pack-priv static final Class<T>[] SORTED_SET_ARG_CLASSES
STD_SYNCHRONIZED_COLLECTION_CLback to summary
pack-priv static final Class<T> STD_SYNCHRONIZED_COLLECTION_CL
STD_SYNCHRONIZED_LIST_CLback to summary
pack-priv static final Class<T> STD_SYNCHRONIZED_LIST_CL
STD_SYNCHRONIZED_MAP_CLback to summary
pack-priv static final Class<T> STD_SYNCHRONIZED_MAP_CL
STD_SYNCHRONIZED_RA_LIST_CLback to summary
pack-priv static final Class<T> STD_SYNCHRONIZED_RA_LIST_CL
STD_SYNCHRONIZED_SET_CLback to summary
pack-priv static final Class<T> STD_SYNCHRONIZED_SET_CL
STD_SYNCHRONIZED_SORTED_MAP_CLback to summary
pack-priv static final Class<T> STD_SYNCHRONIZED_SORTED_MAP_CL
STD_SYNCHRONIZED_SORTED_SET_CLback to summary
pack-priv static final Class<T> STD_SYNCHRONIZED_SORTED_SET_CL
STD_UNMODIFIABLE_COLLECTION_CLback to summary
pack-priv static final Class<T> STD_UNMODIFIABLE_COLLECTION_CL
STD_UNMODIFIABLE_LIST_CLback to summary
pack-priv static final Class<T> STD_UNMODIFIABLE_LIST_CL
STD_UNMODIFIABLE_MAP_CLback to summary
pack-priv static final Class<T> STD_UNMODIFIABLE_MAP_CL
STD_UNMODIFIABLE_RA_LIST_CLback to summary
pack-priv static final Class<T> STD_UNMODIFIABLE_RA_LIST_CL
STD_UNMODIFIABLE_SET_CLback to summary
pack-priv static final Class<T> STD_UNMODIFIABLE_SET_CL
STD_UNMODIFIABLE_SORTED_MAP_CLback to summary
pack-priv static final Class<T> STD_UNMODIFIABLE_SORTED_MAP_CL
STD_UNMODIFIABLE_SORTED_SET_CLback to summary
pack-priv static final Class<T> STD_UNMODIFIABLE_SORTED_SET_CL
SYNCHRONIZED_WRAPPERSback to summary
pack-priv static final Set<E> SYNCHRONIZED_WRAPPERS
UNMODIFIABLE_WRAPPERSback to summary
pack-priv static final Set<E> UNMODIFIABLE_WRAPPERS

Constructor Detail

CollectionUtilsback to summary
private CollectionUtils()

Method Detail

addback to summary
public static void add(Collection<E> c, Object o)
attemptCloneback to summary
public static Collection<E> attemptClone(Collection<E> c) throws NoSuchMethodException

Attempts to find a public clone() method or a copy constructor, in that order, and calls what it finds. If neither is available, throws a NoSuchMethodException.

attemptCloneback to summary
public static Map<K, V> attemptClone(Map<K, V> m) throws NoSuchMethodException

Attempts to find a public clone() method or a copy constructor, in that order, and calls what it finds. If neither is available, throws a NoSuchMethodException.

isCollectionsWrapperback to summary
public static boolean isCollectionsWrapper(Class<T> cl)
isCollectionsWrapperback to summary
public static boolean isCollectionsWrapper(Collection<E> c)
isCollectionsWrapperback to summary
public static boolean isCollectionsWrapper(Map<K, V> m)
isSynchronizedWrapperback to summary
public static boolean isSynchronizedWrapper(Class<T> cl)
isSynchronizedWrapperback to summary
public static boolean isSynchronizedWrapper(Collection<E> c)
isSynchronizedWrapperback to summary
public static boolean isSynchronizedWrapper(Map<K, V> m)
isUnmodifiableWrapperback to summary
public static boolean isUnmodifiableWrapper(Class<T> cl)
isUnmodifiableWrapperback to summary
public static boolean isUnmodifiableWrapper(Collection<E> c)
isUnmodifiableWrapperback to summary
public static boolean isUnmodifiableWrapper(Map<K, V> m)
narrowSynchronizedCollectionback to summary
public static Collection<E> narrowSynchronizedCollection(Collection<E> c)
narrowSynchronizedMapback to summary
public static Map<K, V> narrowSynchronizedMap(Map<K, V> m)
narrowUnmodifiableCollectionback to summary
public static Collection<E> narrowUnmodifiableCollection(Collection<E> c)
narrowUnmodifiableMapback to summary
public static Map<K, V> narrowUnmodifiableMap(Map<K, V> m)
removeback to summary
public static void remove(Collection<E> c, Object o)
sizeback to summary
public static int size(Object o)