com.sun.xml.bind.v2.util

Class TypeCast

public class TypeCast extends Object

Method Summary
static <K,V> Map<K,V>checkedCast(Map<?,?> m, Class<K> keyType, Class<V> valueType)
Makes sure that a map contains the right type, and returns it to the desirable type.

Method Detail

checkedCast

public static <K,V> Map<K,V> checkedCast(Map<?,?> m, Class<K> keyType, Class<V> valueType)
Makes sure that a map contains the right type, and returns it to the desirable type.