Method isInstance(Object obj)
Return type: boolean
Member of: java.lang.Class
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 ok = c.isInstance(this);
2 if (c.isInstance (this)) {
3 if (setter.getDeclaringClass().isInstance(this))
4 if (getter.getDeclaringClass().isInstance(this))
5 return klass.isInstance( o ) ? o : null;
6 if (leafClass.isInstance(o))
7 else if (!c.isInstance(object))
8 if (value == null || (type != null && type.isInstance(value)))
9 if (editClass.isInstance(edit)) {
10 if(Exception.class.isInstance(type))
11 if (cls.isInstance(parent)) return parent;
12 if (!listenerInterface.isInstance(listener)) throw new IllegalArgumentException("EventListener " + listener + " must implement " + listenerInterface.getName());
13 if (!interf.isInstance(rslt))
14 if (classes[i].isInstance(object))
15 if (byteArrayClass.isInstance(o)) {
16 while( declaringClass.isInstance(start) == false ) {
17 if(!iface.isInstance(delegate))
18 if (clazz.isInstance(o))
19 if (parameter.getValueClass().isInstance(value))
20 if(_include.isInstance(candidate)) {
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.