Interface ClassUtil

All Superinterfaces:
org.brijframework.util.CommanUtil

public interface ClassUtil extends org.brijframework.util.CommanUtil
  • Method Details

    • isJDKClass

      static <T> boolean isJDKClass(T t)
    • isProjectClass

      static boolean isProjectClass(Object object)
    • isJarClass

      static boolean isJarClass(Object object)
    • isTypeClass

      static <T> boolean isTypeClass(T t, String packageStart)
    • isArrayClass

      static boolean isArrayClass(Class<?> cls)
    • getTargetClass

      static Class<?> getTargetClass(Class<?> type)
      Find implement class from given class for create object
      Parameters:
      field -
      type -
      Returns:
      Class
    • getTargetClass

      static Class<?> getTargetClass(Method field, Class<?> type)
      Find implement class from given class for create object
      Parameters:
      field -
      type -
      Returns:
      Class
    • getTargetClass

      static Class<?> getTargetClass(Field field, Class<?> type)
      Find implement class from given class for create object
      Parameters:
      field -
      type -
      Returns:
      Class
    • isBoolean

      static boolean isBoolean(Class<?> cls)
      Check if class is Boolean
      Parameters:
      cls - Class object which need to check
      Returns:
      true if class is Boolean else false
    • isNumber

      static boolean isNumber(Class<?> cls)
      Check if class is Boolean
      Parameters:
      cls - Class object which need to check
      Returns:
      true if class is Boolean else false
    • isPrimativeClass

      static Boolean isPrimativeClass(Class<?> _class)
    • isPrimativeArray

      static Boolean isPrimativeArray(Object obj)
    • getParameterizedType

      static ParameterizedType getParameterizedType(Class<?> target)
    • getParameterizedTypes

      static Type[] getParameterizedTypes(Class<?> target)
    • getGenericType

      static Type[] getGenericType(Class<?> target)
    • isClass

      static boolean isClass(String _className)
    • getClass

      static Class<?> getClass(String _className)
      get class from class name
      Parameters:
      _className -
      Returns:
      class
    • getSuperClass

      static Class<?> getSuperClass(Class<?> _class)
      get supper class of current class
      Parameters:
      _className -
      Returns:
      class
    • getSuperInterface

      static Class<?> getSuperInterface(Class<?> _class)
      get supper interface of current class
      Parameters:
      _className -
      Returns:
      class
    • getAllSuperInterface

      static List<Class<?>> getAllSuperInterface(Class<?> _class)
      get all interface of current class
      Parameters:
      _className -
      Returns:
      list
    • getAllSuperClass

      static List<Class<?>> getAllSuperClass(Class<?> _class)
      get all supper class of current class
      Parameters:
      _class -
      Returns:
      list
    • isContainInterface

      static boolean isContainInterface(Class<?> _class, Class<?> _interface)
      check interface is exist or not in current class
      Parameters:
      _clazz -
      Returns:
      list
    • collectionParamType

      static Class<?> collectionParamType(Field _field)
    • collectionParamType

      static Class<?> collectionParamType(Method _field)
    • collectionParamType

      static Class<?> collectionParamType(AccessibleObject _field)
    • getCollectionType

      static Class<?> getCollectionType(Collection<?> _collection)
    • isArrayField

      static boolean isArrayField(Field _field)
    • isCollection

      static boolean isCollection(Class<?> _class)
    • getAllRelField

      static List<Field> getAllRelField(Class<?> _class)
    • main

      static void main(String[] args)