public class TypeCast extends Object
Constructor | Description |
---|---|
TypeCast() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
Copyright © 2018 Oracle Corporation. All rights reserved.