Package org.int4.dirk.util
Class Primitives
- java.lang.Object
-
- org.int4.dirk.util.Primitives
-
public class Primitives extends java.lang.ObjectUtility 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.TypetoBoxed(java.lang.reflect.Type type)Converts aTypeif it is primitive to its box, otherwise returns the original type.
-
-
-
Method Detail
-
toBoxed
public static java.lang.reflect.Type toBoxed(java.lang.reflect.Type type)
Converts aTypeif it is primitive to its box, otherwise returns the original type.- Parameters:
type- a type to convert, cannot benull- Returns:
- a boxed
Typeif it was a primitive type, otherwise returns the original type, nevernull
-
-