Class PrimitiveUtil

java.lang.Object
dev.denux.dtp.util.PrimitiveUtil

public class PrimitiveUtil extends Object
A utility class that contains useful methods regarding primitive types.
  • Method Details

    • wrap

      @Nonnull public static <T> Class<T> wrap(@Nonnull Class<T> clazz)
      Wraps a primitive type to their wrapper class.
      Parameters:
      clazz - the Class you want to wrap.
      Returns:
      the wrapper class or the given class if they are no wrapper class for it.