public String format ( double number , NumberFormat numberFormat , PluralRules pluralRules ) { String formatStr = numberFormat . format ( number ) ; StandardPlural p = selectPlural ( number , numberFormat , pluralRules ) ; SimpleFormatter formatter = templates [ p . ordinal ( ) ] ; if ( formatter == null ) { formatter = templates [ StandardPlural . OTHER_INDEX ] ; assert formatter != null ; } return formatter . format ( formatStr ) ; }
Format formats a number with this object .