|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgrapht.util.TypeUtil<T>
public class TypeUtil<T>
TypeUtil isolates type-unsafety so that code which uses it for legitimate reasons can stay warning-free.
| Constructor Summary | |
|---|---|
TypeUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
uncheckedCast(java.lang.Object o,
TypeUtil<T> typeDecl)
Casts an object to a type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeUtil()
| Method Detail |
|---|
public static <T> T uncheckedCast(java.lang.Object o,
TypeUtil<T> typeDecl)
o - object to be casttypeDecl - conveys the target type information; the actual value is
unused and can be null since this is all just stupid compiler tricks
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||