Class TypeUtil

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

      • TypeUtil

        public TypeUtil()
    • Method Detail

      • uncheckedCast

        public static <T> T uncheckedCast​(Object o)
        Casts an object to a type.
        Type Parameters:
        T - the type of the result
        o - object to be cast
        the result of the cast