Creates a new instance of the context.
Creates a new instance of the context.
the formatter controlling the parse, not null
Temporary store of parsed data.
Helper to compare two char
.
Helper to compare two char
. This uses #isCaseSensitive()
.
the first character
the second character
true if equal
Creates a copy of this context.
Ends the parsing of an optional segment of the input.
Ends the parsing of an optional segment of the input.
whether the optional segment was successfully parsed
Gets the effective chronology during parsing.
Gets the effective chronology during parsing.
the effective parsing chronology, not null
Gets the locale.
Gets the locale.
This locale is used to control localization in the parse except where localization is controlled by the symbols.
the locale, not null
Gets the first value that was parsed for the specified field.
Gets the first value that was parsed for the specified field.
This searches the results of the parse, returning the first value found for the specified field. No attempt is made to derive a value. The field may have an out of range value. For example, the day-of-month might be set to 50, or the hour to 1000.
the field to query from the map, null returns null
the value mapped to the specified field, null if field was not parsed
Gets the formatting symbols.
Gets the formatting symbols.
The symbols control the localization of numeric parsing.
the formatting symbols, not null
Checks if parsing is case sensitive.
Checks if parsing is case sensitive.
true if parsing is case sensitive, false if case insensitive
Checks if parsing is strict.
Checks if parsing is strict.
Strict parsing requires exact matching of the text and sign styles.
true if parsing is strict, false if lenient
Sets whether the parsing is case sensitive or not.
Sets whether the parsing is case sensitive or not.
changes the parsing to be case sensitive or not from now on
Sets the locale.
Sets the locale.
This locale is used to control localization in the print output except where localization is controlled by the symbols.
the locale, not null
Stores the parsed zone.
Stores the parsed zone.
This stores the zone that has been parsed. No validation is performed other than ensuring it is not null.
the parsed zone, not null
Stores the parsed chronology.
Stores the parsed chronology.
This stores the chronology that has been parsed. No validation is performed other than ensuring it is not null.
the parsed chronology, not null
Stores the parsed field.
Stores the parsed field.
This stores a field-value pair that has been parsed. The value stored may be out of range for the field - no checks are performed.
the field to set in the field-value map, not null
the value to set in the field-value map
the position of the field being parsed
the position after the field being parsed
the new position
Stores the leap second.
Sets whether parsing is strict or lenient.
Sets whether parsing is strict or lenient.
changes the parsing to be strict or lenient from now on
Starts the parsing of an optional segment of the input.
Helper to compare two CharSequence
instances.
Helper to compare two CharSequence
instances. This uses #isCaseSensitive()
.
the first character sequence, not null
the offset into the first sequence, valid
the second character sequence, not null
the offset into the second sequence, valid
the length to check, valid
true if equal
Returns a TemporalAccessor
that can be used to interpret the results of the parse.
Returns a TemporalAccessor
that can be used to interpret the results of the parse.
an accessor with the results of the parse, not null
Returns a string version of the context for debugging.
Returns a string version of the context for debugging.
a string representation of the context data, not null
Context object used during date and time parsing.
This class represents the current state of the parse. It has the ability to store and retrieve the parsed values and manage optional segments. It also provides key information to the parsing methods.
Once parsing is complete, the
#toBuilder()
is typically used to obtain a builder that can combine the separate parsed fields into meaningful values.Specification for implementors
This class is a mutable context intended for use from a single thread. Usage of the class is thread-safe within standard parsing as a new instance of this class is automatically created for each parse and parsing is single-threaded