public class Unchecked
extends java.lang.Object
| Constructor and Description |
|---|
Unchecked() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cast(java.lang.Object o)
Cast an object to a specific type without a warning.
|
public static <T> T cast(java.lang.Object o)
T - The target typeo - The object to castjava.lang.ClassCastException - If the object cannot be casted to the target type