|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.util.CollectionUtil
public class CollectionUtil
| Method Summary | ||
|---|---|---|
static
|
checkCollection(java.util.Collection<?> collection,
java.lang.Class<E> type)
Ensures that all elements of the given collection can be cast to a desired type. |
|
static
|
checkList(java.util.List<?> list,
java.lang.Class<E> type)
Ensures that all elements of the given list can be cast to a desired type. |
|
static
|
checkMap(java.util.Map<?,?> map,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
|
|
static
|
checkSet(java.util.Set<?> set,
java.lang.Class<E> type)
Ensures that all elements of the given set can be cast to a desired type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <E> java.util.Collection<E> checkCollection(java.util.Collection<?> collection,
java.lang.Class<E> type)
collection - the collection to checktype - the desired type
java.lang.ClassCastException - if an element cannot be cast to the desired type
public static <E> java.util.List<E> checkList(java.util.List<?> list,
java.lang.Class<E> type)
list - the list to checktype - the desired type
java.lang.ClassCastException - if an element cannot be cast to the desired type
public static <E> java.util.Set<E> checkSet(java.util.Set<?> set,
java.lang.Class<E> type)
list - the set to checktype - the desired type
java.lang.ClassCastException - if an element cannot be cast to the desired type
public static <K,V> java.util.Map<K,V> checkMap(java.util.Map<?,?> map,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||