public class TypeCast
extends java.lang.Object
Constructor and Description |
---|
TypeCast() |
Modifier and Type | Method and Description |
---|---|
static <K,V> java.util.Map<K,V> |
checkedCast(java.util.Map<?,?> m,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
Makes sure that a map contains the right type, and returns it to the desirable type.
|