The opposite of instanceof
As an alternative make use of isInstance
method:
if (!example.class.isInstance(blarg))
{
// your code here
}
You have to negate the entire thing:
if(!(example instanceof blarg))
You could also write it like so:
if(example instanceof blarg == false)