Class CommonUtils


  • public class CommonUtils
    extends Object
    • Method Detail

      • getFields

        protected static List<Field> getFields​(Class<?> clazz)
        Gets the fields.
        Parameters:
        clazz - the clazz
        Returns:
        the fields
      • convertArrayToPrimitive

        protected static <T> T convertArrayToPrimitive​(List<?> list,
                                                       Class<?> clazz)
                                                throws Exception
        Convert array to primitive.
        Type Parameters:
        T - the generic type
        Parameters:
        list - the list
        clazz - the clazz
        Returns:
        the t
        Throws:
        Exception - the exception
      • convertPrimitiveArrayToObjects

        protected static <T> Object[] convertPrimitiveArrayToObjects​(T array)
                                                              throws Exception
        Throws:
        Exception