Class TypeUtils


  • public class TypeUtils
    extends java.lang.Object
    Author:
    Loc Ha
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<java.lang.Class<?>> allPrimitiveTypes()  
      static java.util.Set<java.lang.Class<?>> allWrapperTypes()  
      static boolean isPrimitiveOrWrapper​(java.lang.Class<?> type)  
      static boolean isWrapperType​(java.lang.Class<?> type)  
      static java.lang.Class<?> unwrap​(java.lang.Class<?> type)  
      static java.lang.Class<?> wrap​(java.lang.Class<?> type)  
      • Methods inherited from class java.lang.Object

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

      • TypeUtils

        public TypeUtils()
    • Method Detail

      • allPrimitiveTypes

        public static java.util.Set<java.lang.Class<?>> allPrimitiveTypes()
      • allWrapperTypes

        public static java.util.Set<java.lang.Class<?>> allWrapperTypes()
      • isWrapperType

        public static boolean isWrapperType​(java.lang.Class<?> type)
      • wrap

        public static java.lang.Class<?> wrap​(java.lang.Class<?> type)
      • unwrap

        public static java.lang.Class<?> unwrap​(java.lang.Class<?> type)
      • isPrimitiveOrWrapper

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