- java.lang.Object
-
- com.rezzedup.util.constants.types.Primitives
-
public class Primitives extends Object
Constants and utilities for boxed primitives.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<Class<?>>boxedTypes()Gets all boxed primitive types.static booleanisBoxed(@NullOr Object object)Checks if an object is an instance of a boxed primitive.static Set<Class<?>>unboxedPrimitiveTypes()Gets all directly-primitive types.
-
-
-
Method Detail
-
unboxedPrimitiveTypes
public static Set<Class<?>> unboxedPrimitiveTypes()
Gets all directly-primitive types. These are unboxed, purely-primitive types.- Returns:
- an immutable set containing all directly-primitive types
- See Also:
boxedTypes()
-
boxedTypes
public static Set<Class<?>> boxedTypes()
Gets all boxed primitive types.- Returns:
- an immutable set containing all boxed primitive types
-
-