public DateTimeFormatterBuilder appendDecimal ( DateTimeFieldType fieldType , int minDigits , int maxDigits ) { if ( fieldType == null ) { throw new IllegalArgumentException ( "Field type must not be null" ) ; } if ( maxDigits < minDigits ) { maxDigits = minDigits ; } if ( minDigits < 0 || maxDigits <= 0 ) { throw new IllegalArgumentException ( ) ; } if ( minDigits <= 1 ) { return append0 ( new UnpaddedNumber ( fieldType , maxDigits , false ) ) ; } else { return append0 ( new PaddedNumber ( fieldType , maxDigits , false , minDigits ) ) ; } }
Instructs the printer to emit a field value as a decimal number and the parser to expect an unsigned decimal number .