static class DateTimeFormatterBuilder.FixedNumber extends DateTimeFormatterBuilder.PaddedNumber
iMinPrintedDigitsiFieldType, iMaxParsedDigits, iSigned| Modifier | Constructor and Description |
|---|---|
protected |
FixedNumber(DateTimeFieldType fieldType,
int numDigits,
boolean signed) |
| Modifier and Type | Method and Description |
|---|---|
int |
parseInto(DateTimeParserBucket bucket,
java.lang.CharSequence text,
int position)
Parse an element from the given text, saving any fields into the given
DateTimeParserBucket.
|
estimatePrintedLength, printTo, printToestimateParsedLengthprotected FixedNumber(DateTimeFieldType fieldType, int numDigits, boolean signed)
public int parseInto(DateTimeParserBucket bucket, java.lang.CharSequence text, int position)
InternalParserIf it fails, the return value is negative. To determine the position where the parse failed, apply the one's complement operator (~) on the return value.
parseInto in interface InternalParserparseInto in class DateTimeFormatterBuilder.NumberFormatterbucket - field are saved into this, not nulltext - the text to parse, not nullposition - position to start parsing from