|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.oness.common.model.util.CollectionUtils
Some utility methods to use Collections
Constructor Summary | |
CollectionUtils()
|
Method Summary | |
static java.util.List |
add(java.util.List list,
java.lang.Object object)
Add an object to a List and return the result. |
static java.util.Set |
add(java.util.Set set,
java.lang.Object object)
Add an object to a Set and return the result. |
static java.util.Collection |
clone(java.util.Collection collection)
Clone a Collection copying all its elements to a new one. |
static java.util.Map |
clone(java.util.Map map)
Clone a Map copying all its elements to a new one. |
static boolean |
isCollection(java.lang.Class theClass)
|
static boolean |
isMap(java.lang.Class theClass)
|
static java.util.List |
newList(java.lang.Object object)
Return a List (actually an ArrayList) with only that object. |
static java.util.Set |
newSet(java.lang.Object object)
Return a Set (actually a HashSet) with only that object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionUtils()
Method Detail |
public static java.util.Set add(java.util.Set set, java.lang.Object object)
set
- object
-
public static java.util.List add(java.util.List list, java.lang.Object object)
object
-
public static java.util.Set newSet(java.lang.Object object)
public static java.util.List newList(java.lang.Object object)
public static boolean isCollection(java.lang.Class theClass)
public static boolean isMap(java.lang.Class theClass)
public static java.util.Collection clone(java.util.Collection collection)
null
return null
.
collection
-
public static java.util.Map clone(java.util.Map map)
null
return null
.
map
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |