Top Constructors Methods
org.glassfish.jaxb.runtime.v2.util

public Class TypeCast

extends Object
Class Inheritance
Imports
java.util.Map

Author
Kohsuke Kawaguchi

Constructor Summary

AccessConstructor and Description
private
TypeCast()

Private constructor.

Method Summary

Modifier and TypeMethod and Description
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TypeCastback to summary
private TypeCast()

Private constructor.

Method Detail

checkedCastback to summary
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.

Annotations
@SuppressWarnings:unchecked