protected boolean test(String val1,String val2,StringBuffer buf){
  boolean ret=false;
switch (op) {
case 1:
    ret=val1.equals(val2);
  break;
case 2:
ret=!val1.equals(val2);
break;
}
if (buf != null) {
String operation=null;
switch (op) {
case 1:
operation=(ret + "=" + val1+ "=="+ val2);
break;
case 2:
operation=(ret + "=" + val1+ "!="+ val2);
break;
}
buf.append("\n   " + toString() + ":"+ operation);
}
return ret;
}

protected boolean test ( String val1 , String val2 , StringBuffer buf ) { boolean ret = false ; switch ( op ) { case 1 : ret = val1 . equals ( val2 ) ; break ; case 2 : ret = ! val1 . equals ( val2 ) ; break ; } if ( buf != null ) { String operation = null ; switch ( op ) { case 1 : operation = ( ret + "=" + val1 + "==" + val2 ) ; break ; case 2 : operation = ( ret + "=" + val1 + "!=" + val2 ) ; break ; } buf . append ( "\n   " + toString ( ) + ":" + operation ) ; } return ret ; }
the basic test for the operator , returning val1 op val2 .
