Class DateTimeParseContext

java.lang.Object
org.threeten.bp.format.DateTimeParseContext

public final class DateTimeParseContext extends Object
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
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Returns a string version of the context for debugging.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the context data, not null