Package com.mchange.v2.util
Class CollectionUtils
java.lang.Object
com.mchange.v2.util.CollectionUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(Collection c, Object o) static Collection
Attempts to find a public clone() method or a copy constructor, in that order, and calls what it finds.static Map
attemptClone
(Map m) Attempts to find a public clone() method or a copy constructor, in that order, and calls what it finds.static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static Collection
static Map
static Collection
static Map
static void
remove
(Collection c, Object o) static int
-
Field Details
-
EMPTY_SORTED_SET
-
-
Method Details
-
isCollectionsWrapper
-
isCollectionsWrapper
-
isCollectionsWrapper
-
isSynchronizedWrapper
-
isSynchronizedWrapper
-
isSynchronizedWrapper
-
isUnmodifiableWrapper
-
isUnmodifiableWrapper
-
isUnmodifiableWrapper
-
narrowUnmodifiableCollection
-
narrowSynchronizedCollection
-
narrowUnmodifiableMap
-
narrowSynchronizedMap
-
attemptClone
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.- Throws:
NoSuchMethodException
-
attemptClone
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.- Throws:
NoSuchMethodException
-
add
-
remove
-
size
-