Interface DateTimeConverter.Builder

    • Method Detail

      • source

        DateTimeConverter.Builder source​(String source)

        The key to apply the date conversion to.

        Parameters:
        source - The key to apply the date conversion to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • target

        DateTimeConverter.Builder target​(String target)

        The JSON field to store the result in.

        Parameters:
        target - The JSON field to store the result in.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetFormat

        DateTimeConverter.Builder targetFormat​(String targetFormat)

        The datetime format to use for the converted data in the target field.

        If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.

        Parameters:
        targetFormat - The datetime format to use for the converted data in the target field.

        If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchPatterns

        DateTimeConverter.Builder matchPatterns​(Collection<String> matchPatterns)

        A list of patterns to match against the source field.

        Parameters:
        matchPatterns - A list of patterns to match against the source field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchPatterns

        DateTimeConverter.Builder matchPatterns​(String... matchPatterns)

        A list of patterns to match against the source field.

        Parameters:
        matchPatterns - A list of patterns to match against the source field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceTimezone

        DateTimeConverter.Builder sourceTimezone​(String sourceTimezone)

        The time zone of the source field. If you omit this, the default used is the UTC zone.

        Parameters:
        sourceTimezone - The time zone of the source field. If you omit this, the default used is the UTC zone.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetTimezone

        DateTimeConverter.Builder targetTimezone​(String targetTimezone)

        The time zone of the target field. If you omit this, the default used is the UTC zone.

        Parameters:
        targetTimezone - The time zone of the target field. If you omit this, the default used is the UTC zone.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • locale

        DateTimeConverter.Builder locale​(String locale)

        The locale of the source field. If you omit this, the default of locale.ROOT is used.

        Parameters:
        locale - The locale of the source field. If you omit this, the default of locale.ROOT is used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.