Class NativeTypeWrapper


  • public class NativeTypeWrapper
    extends java.lang.Object
    Utility to wrap native types.
    Author:
    klausj
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Class<?>[] WRAP_TYPES  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class<?> getWrapperClass​(java.lang.Class<?> nativeType)
      Get wrapper class of native types if available.
      static boolean isNativeWrapperClass​(java.lang.Class<?> c)  
      static boolean isPrimitiveNumber​(java.lang.Class<?> type)  
      • Methods inherited from class java.lang.Object

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

      • WRAP_TYPES

        public static final java.lang.Class<?>[] WRAP_TYPES
    • Constructor Detail

      • NativeTypeWrapper

        public NativeTypeWrapper()
    • Method Detail

      • getWrapperClass

        public static java.lang.Class<?> getWrapperClass​(java.lang.Class<?> nativeType)
        Get wrapper class of native types if available.
        Parameters:
        nativeType -
        Returns:
        wrapper class if available the input class else.
      • isNativeWrapperClass

        public static boolean isNativeWrapperClass​(java.lang.Class<?> c)
      • isPrimitiveNumber

        public static boolean isPrimitiveNumber​(java.lang.Class<?> type)