Interface TypeUtil


  • public interface TypeUtil
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static <T> T typeConvert​(java.lang.Object val, java.lang.Class<T> cls)  
      static boolean typeEquals​(java.lang.Class cls1, java.lang.Class cls2)
      Compare the types, allows to compare primitive types with their wrapper classes, etc
    • Method Detail

      • typeEquals

        static boolean typeEquals​(java.lang.Class cls1,
                                  java.lang.Class cls2)
        Compare the types, allows to compare primitive types with their wrapper classes, etc
      • typeConvert

        static <T> T typeConvert​(java.lang.Object val,
                                 java.lang.Class<T> cls)
                          throws java.lang.ClassCastException
        Throws:
        java.lang.ClassCastException