public final class CmsCollectionsGenericWrapper
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> java.util.Map<K,V> |
createLazyMap(org.apache.commons.collections.Transformer T)
Provides a wrapper to access the
LazyMap functionality that avoids warnings with Java 1.5 generic code. |
static <K,V> java.util.Map<K,V> |
createLRUMap()
Provides a wrapper to create a
LRUMap that avoids warnings with Java 1.5 generic code. |
static <K,V> java.util.Map<K,V> |
createLRUMap(int size)
Provides a wrapper to create a
LRUMap with the given size that avoids warnings with Java 1.5 generic code. |
static <K> java.util.Enumeration<K> |
enumeration(java.util.Enumeration<?> enumeration)
Provides a wrapper to convert an enumeration that avoids warnings with Java 1.5 generic code.
|
static <K> java.util.List<K> |
list(java.lang.Object o)
Provides a wrapper to convert an object into a list that avoids warnings with Java 1.5 generic code.
|
static <K,V> java.util.Map<K,V> |
map(java.lang.Object o)
Provides a wrapper to convert an object into a map that avoids warnings with Java 1.5 generic code.
|
public static <K,V> java.util.Map<K,V> createLazyMap(org.apache.commons.collections.Transformer T)
LazyMap functionality that avoids warnings with Java 1.5 generic code.K - the type of keys maintained by the returned mapV - the type of mapped valuesT - the transformer to use for the Lazy MapLazyMap of the required generic typepublic static <K,V> java.util.Map<K,V> createLRUMap()
LRUMap that avoids warnings with Java 1.5 generic code.K - the type of keys maintained by the returned mapV - the type of mapped valuesLRUMap of the required generic typepublic static <K,V> java.util.Map<K,V> createLRUMap(int size)
LRUMap with the given size that avoids warnings with Java 1.5 generic code.K - the type of keys maintained by the returned mapV - the type of mapped valuessize - the initial size of the created MapLRUMap with the given size of the required generic typepublic static <K> java.util.Enumeration<K> enumeration(java.util.Enumeration<?> enumeration)
K - the type of the returned enumeration elementsenumeration - the enumeration to be convertedEnumeration with the required generic typepublic static <K> java.util.List<K> list(java.lang.Object o)
K - the type of the returned list elementso - the object to be convertedList with the required generic typepublic static <K,V> java.util.Map<K,V> map(java.lang.Object o)
K - the type of keys maintained by the returned mapV - the type of mapped valueso - the object to be convertedMap of the required generic type