java.lang.Object
is.codion.common.Primitives
A utility class for working with primitives.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Class<T>
static <T> T
defaultValue
(Class<T> primitiveType)
-
Method Details
-
defaultValue
- Type Parameters:
T
- the type- Parameters:
primitiveType
- the primitive type- Returns:
- the default value for the given type
- Throws:
IllegalArgumentException
- in case primitiveType is not a primitive type
-
boxedType
- Type Parameters:
T
- the type- Parameters:
primitiveType
- the primitive type- Returns:
- the boxed type
- Throws:
IllegalArgumentException
- in case primitiveType is not a primitive type
-