Hi,
I need to monitor a boolean (object type) return value and extract true or false from it. is it possible as it is not simple data type. Any suggestions?
Answer by Christian S. ·
hi,
what do you mean with "monitor"?
if you capture this Boolean via a sensor rule then toString() will be called on it which should return "true" or "false" anyway (http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Boolean.java#Boolean.toString%28%29).
and if not, you can still use deep object access to call booleanValue() on it (http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Boolean.java#Boolean.booleanValue%28%29).
hope this helps,
Christian
Thanks Christian. i think i might need to use the deep object access. I will try and let you know
JANUARY 15, 3:00 PM GMT / 10:00 AM ET