Package zombie.util

Class Type

java.lang.Object
zombie.util.Type

public class Type extends Object
  • Constructor Details

    • Type

      public Type()
  • Method Details

    • tryCastTo

      public static <R, I> R tryCastTo(I val, Class<R> clazz)
      Returns the supplied object, cast to the specified Type, or NULL if it is not the right type.
    • asBoolean

      public static boolean asBoolean(Object val)
    • asBoolean

      public static boolean asBoolean(Object val, boolean defaultVal)