Class Primitives


  • public class Primitives
    extends java.lang.Object
    Utility methods dealing with primitives.
    • Constructor Summary

      Constructors 
      Constructor Description
      Primitives()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.reflect.Type toBoxed​(java.lang.reflect.Type type)
      Converts a Type if it is primitive to its box, otherwise returns the original type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Primitives

        public Primitives()
    • Method Detail

      • toBoxed

        public static java.lang.reflect.Type toBoxed​(java.lang.reflect.Type type)
        Converts a Type if it is primitive to its box, otherwise returns the original type.
        Parameters:
        type - a type to convert, cannot be null
        Returns:
        a boxed Type if it was a primitive type, otherwise returns the original type, never null