java.lang.Object
org.jgrapht.util.TypeUtil
TypeUtil isolates type-unsafety so that code which uses it for legitimate reasons can stay
warning-free.
- Author:
- John V. Sichi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
Casts an object to a type.
-
Constructor Details
-
TypeUtil
public TypeUtil()
-
-
Method Details
-
uncheckedCast
Casts an object to a type.- Type Parameters:
T
- the type of the result- Parameters:
o
- object to be cast- Returns:
- the result of the cast
-