Java Class Load loadClass(T instance)

Here you can find the source of loadClass(T instance)

Description

load Class

License

Apache License

Declaration

public static <T> Class<T> loadClass(T instance) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static <T> Class<T> loadClass(T instance) {
        if (instance != null) {
            return (Class<T>) instance.getClass();
        }/*from ww w .ja v  a  2s  .co m*/

        return null;
    }
}

Related

  1. loadClass(String name)
  2. loadClass(String name, ClassLoader cl)
  3. loadClass(String name, ClassLoader ldr)
  4. loadClass(String name, ClassLoader loader)
  5. loadClass(String theClassName, Class theReferrer)
  6. loadClassByName(final String className, final ClassLoader loader)
  7. loadClassByName(String className)
  8. loadClassElseThrow(final String enumType)
  9. loadClassFromClassLoader( String fillyQualifiedClassName)