Code example for ChoiceFormat

Methods: format

0
   * @param parameters the parameters, usually a Number- or Date object. 
   * @return the formatted text. 
   */ 
  public String format(final Object parameters)
  { 
    return choiceFormat.format(parameters);
  } 
 
  /** 
   * Clones the object. 
   * 
   * @return the clone. 
   * @throws CloneNotSupportedException if cloning failed for some reason. 
   */ 
  public FastChoiceFormat clone() 
  { 
    try 
    { 
      final FastChoiceFormat format = (FastChoiceFormat) super.clone();
      format.choiceFormat = (ChoiceFormat) choiceFormat.clone();
      return format;