What's the correct syntax to make this work?
public boolean isTypeOf(Class type) {
return this instanceof type;
}
I intend to call it with:
foo.isTypeOf(MyClass.class);
The method will be overriden, otherwise I would just use instanceof
inplace.