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()
DateTimeParser
estimateParsedLength
in interface DateTimeParser
estimateParsedLength
in interface InternalParser
public int parseInto(DateTimeParserBucket bucket, java.lang.CharSequence text, int position)
InternalParser
If 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 InternalParser
bucket
- 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)
DateTimeParser
If 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 DateTimeParser
bucket
- 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