class InternalParserDateTimeParser extends java.lang.Object implements DateTimeParser, InternalParser
| Modifier and Type | Field and Description |
|---|---|
private InternalParser |
underlying |
| Modifier | Constructor and Description |
|---|---|
private |
InternalParserDateTimeParser(InternalParser underlying) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
estimateParsedLength()
Returns the expected maximum number of characters consumed.
|
(package private) static DateTimeParser |
of(InternalParser underlying) |
int |
parseInto(DateTimeParserBucket bucket,
java.lang.CharSequence text,
int position)
Parse an element from the given text, saving any fields into the given
DateTimeParserBucket.
|
int |
parseInto(DateTimeParserBucket bucket,
java.lang.String text,
int position)
Parse an element from the given text, saving any fields into the given
DateTimeParserBucket.
|
private final InternalParser underlying
private InternalParserDateTimeParser(InternalParser underlying)
static DateTimeParser of(InternalParser underlying)
public int estimateParsedLength()
DateTimeParserestimateParsedLength in interface DateTimeParserestimateParsedLength in interface InternalParserpublic 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 InternalParserbucket - field are saved into this, not nulltext - the text to parse, not nullposition - position to start parsing frompublic int parseInto(DateTimeParserBucket bucket, java.lang.String text, int position)
DateTimeParserIf 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 DateTimeParserbucket - field are saved into this, not nulltext - the text to parse, not nullposition - position to start parsing frompublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object