Class TypeUtil

java.lang.Object
org.jgrapht.util.TypeUtil

public class TypeUtil extends Object
TypeUtil isolates type-unsafety so that code which uses it for legitimate reasons can stay warning-free.
Author:
John V. Sichi
  • Constructor Details

    • TypeUtil

      public TypeUtil()
  • Method Details

    • uncheckedCast

      public static <T> T uncheckedCast(Object o)
      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