Package com.mebigfatguy.fbcontrib.utils
Class CollectionUtils
java.lang.Object
com.mebigfatguy.fbcontrib.utils.CollectionUtils
a collection of static methods for determining if a class belongs to one or
more collection types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.bcel.classfile.JavaClassprivate static org.apache.bcel.classfile.JavaClassprivate static org.apache.bcel.classfile.JavaClass -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivate to reinforce the helper status of the class -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEmpty(Collection<?> c) static booleanstatic <T> booleanisEmpty(T... a) static booleanisListSetMap(String clsName) determines if the current class name is derived from List, Set or Map
-
Field Details
-
LIST_CLASS
private static org.apache.bcel.classfile.JavaClass LIST_CLASS -
SET_CLASS
private static org.apache.bcel.classfile.JavaClass SET_CLASS -
MAP_CLASS
private static org.apache.bcel.classfile.JavaClass MAP_CLASS
-
-
Constructor Details
-
CollectionUtils
private CollectionUtils()private to reinforce the helper status of the class
-
-
Method Details
-
isListSetMap
determines if the current class name is derived from List, Set or Map- Parameters:
clsName- the class to determine it's parentage- Returns:
- if the class is a List, Set or Map
- Throws:
ClassNotFoundException- if the cls parameter can't be found
-
isEmpty
-
isEmpty
-
isEmpty
-