One simple thing to do would be add a method to class that compares the fields and returns
a boolean.
Otherwise, you can use the 'eval' - see documentation.
when
b : DoubleA( )
eval (getcharge() < getOptimal() )
then...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963063#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...