public static NumberFormat getInstance ( ULocale desiredLocale , int choice ) { if ( choice < NUMBERSTYLE || choice > STANDARDCURRENCYSTYLE ) { throw new IllegalArgumentException ( "choice should be from NUMBERSTYLE to STANDARDCURRENCYSTYLE" ) ; } // if (shim == null) { // return createInstance(desiredLocale, choice); // } else { // // TODO: shims must call setLocale() on object they create // return getShim().createInstance(desiredLocale, choice); // } return getShim ( ) . createInstance ( desiredLocale , choice ) ; }
Returns a specific style number format for a specific locale .