public void describeTo(Description d) {
    String s = ""+type ;
    if (quality != ANY && type.form != FORM_COMMODITY) {
      s = QUAL_NAMES[(int) (quality + 0.5f)]+" "+s ;
    }
    if (amount != ANY) s = (I.shorten(amount, 1))+" "+s ;
    d.append(s) ;
    if (refers != null) {
      d.append(" (") ;
      d.append(refers) ;
      d.append(")") ;
    }
  }