com.sun.xml.bind.v2.util
Class TypeCast

java.lang.Object
  extended by com.sun.xml.bind.v2.util.TypeCast

public class TypeCast
extends Object


Constructor Summary
TypeCast()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeCast

public TypeCast()
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.