public boolean compare(Object expected,Object current){
  if (current != null) {
    equal=current.equals(expected);
  }
 else   if (expected != null) {
    equal=expected.equals(1.0);
  }
  return equal;
}

public boolean compare ( Object expected , Object current ) { if ( current != null ) { equal = current . equals ( expected ) ; } else if ( expected != null ) { equal = expected . equals ( 1.0 ) ; } return equal ; }
this is used to compare the expected and current versions of the class . once compared the comparison result is cached within the revision class so that it can be used repeatedly .
