public final class CollectionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static SortedSet |
EMPTY_SORTED_SET |
Modifier and Type | Method and Description |
---|---|
static void |
add(Collection c,
Object o) |
static Collection |
attemptClone(Collection c)
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 |
isCollectionsWrapper(Class cl) |
static boolean |
isCollectionsWrapper(Collection c) |
static boolean |
isCollectionsWrapper(Map m) |
static boolean |
isSynchronizedWrapper(Class cl) |
static boolean |
isSynchronizedWrapper(Collection c) |
static boolean |
isSynchronizedWrapper(Map m) |
static boolean |
isUnmodifiableWrapper(Class cl) |
static boolean |
isUnmodifiableWrapper(Collection c) |
static boolean |
isUnmodifiableWrapper(Map m) |
static Collection |
narrowSynchronizedCollection(Collection c) |
static Map |
narrowSynchronizedMap(Map m) |
static Collection |
narrowUnmodifiableCollection(Collection c) |
static Map |
narrowUnmodifiableMap(Map m) |
static void |
remove(Collection c,
Object o) |
static int |
size(Object o) |
public static final SortedSet EMPTY_SORTED_SET
public static boolean isCollectionsWrapper(Class cl)
public static boolean isCollectionsWrapper(Collection c)
public static boolean isCollectionsWrapper(Map m)
public static boolean isSynchronizedWrapper(Class cl)
public static boolean isSynchronizedWrapper(Collection c)
public static boolean isSynchronizedWrapper(Map m)
public static boolean isUnmodifiableWrapper(Class cl)
public static boolean isUnmodifiableWrapper(Collection c)
public static boolean isUnmodifiableWrapper(Map m)
public static Collection narrowUnmodifiableCollection(Collection c)
public static Collection narrowSynchronizedCollection(Collection c)
public static Collection attemptClone(Collection c) throws NoSuchMethodException
NoSuchMethodException
public static Map attemptClone(Map m) throws NoSuchMethodException
NoSuchMethodException
public static void add(Collection c, Object o)
public static void remove(Collection c, Object o)
public static int size(Object o)
Copyright © 2018 com.mchange. All rights reserved.