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