public MoneyAmountStyle withExtendedGroupingSize ( Integer extendedGroupingSize ) { int sizeVal = ( extendedGroupingSize == null ? - 1 : extendedGroupingSize ) ; if ( extendedGroupingSize != null && sizeVal < 0 ) { throw new IllegalArgumentException ( "Extended grouping size must not be negative" ) ; } if ( sizeVal == this . extendedGroupingSize ) { return this ; } return new MoneyAmountStyle ( zeroCharacter , positiveCharacter , negativeCharacter , decimalPointCharacter , groupingStyle , groupingCharacter , groupingSize , sizeVal , forceDecimalPoint , absValue ) ; }
Returns a copy of this style with the specified extended grouping size .