Java Class InstanceOf instanceOf(Class tester, Class instance)

Here you can find the source of instanceOf(Class tester, Class instance)

Description

instance Of

License

Open Source License

Declaration

public static boolean instanceOf(Class tester, Class instance) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean instanceOf(Class tester, Class instance) {
        try {/* www  .j a v  a  2 s.co m*/
            tester.asSubclass(instance);
            return true;
        } catch (Exception ignored) {
        }
        return false;
    }
}

Related

  1. instanceOf(Class clazz, Class superClass)
  2. instanceOf(Class clazz, Class target)
  3. instanceOf(Class left, Class right)
  4. instanceOf(Class beanClass, Object element)
  5. instanceOf(Class objectClass, Class typeClass)
  6. instanceOf(Class parant, Class chield)
  7. instanceOf(Class test, Class clazz)