public GlobalizationPreferences setNumberFormat ( int style , NumberFormat format ) { if ( isFrozen ( ) ) { throw new UnsupportedOperationException ( "Attempt to modify immutable object" ) ; } if ( numberFormats == null ) { numberFormats = new NumberFormat [ NF_LIMIT ] ; } numberFormats [ style ] = ( NumberFormat ) format . clone ( ) ; // for safety return this ; }
Sets a number format explicitly . Overrides the general locale settings .