public Object percentage(String pct){
  this.wasPercentage=true;
  return Double.valueOf(pct.substring(0,pct.indexOf('%')));
}

public Object percentage ( String pct ) { this . wasPercentage = true ; return Double . valueOf ( pct . substring ( 0 , pct . indexOf ( '%' ) ) ) ; }
set was - percentage flag and return percentage as integer . subclasses might do prop - name swapping , etc .
