Connect with experts and peers to elevate technical expertise, solve problems and share insights
I would like to compare class object in ARL in virtual method like
if (this !=null){
return ABClass.class.isInstance (this);
}
but this is not compiling . Any suggestion
If it's not mandatory for you implement this in the B2X ARL, You can define in safely XOM like this:
public class ABClass { public static boolean checkInstance(Object obj) { return ABClass.class.isInstance(obj); }
Thanks for your response. It's kind of mandatory that's why i am trying to get similar logic in ARL.
You may use
return this instanceof ABClass;