Skip to content

Make LazilyParsedNumber implement Comparable. - #3076

Merged
eamonnmcmanus merged 2 commits into
google:mainfrom
eamonnmcmanus:lazily
Jul 29, 2026
Merged

Make LazilyParsedNumber implement Comparable.#3076
eamonnmcmanus merged 2 commits into
google:mainfrom
eamonnmcmanus:lazily

Conversation

@eamonnmcmanus

Copy link
Copy Markdown
Member

This means that it can be put in a TreeSet or used as a key in a TreeMap, though only if the other elements or keys are also instances of LazilyParsedNumber. Typically that will be the case if they all came from the same place, for example by parsing incoming JSON in the same way.

This means that it can be put in a `TreeSet` or used as a key in a
`TreeMap`, though only if the other elements or keys are also instances
of `LazilyParsedNumber`. Typically that will be the case if they all
came from the same place, for example by parsing incoming JSON in the
same way.
@eamonnmcmanus
eamonnmcmanus requested a review from kluever July 29, 2026 20:27

@kluever kluever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eamonnmcmanus
eamonnmcmanus merged commit 4b46b6c into google:main Jul 29, 2026
21 checks passed
@eamonnmcmanus
eamonnmcmanus deleted the lazily branch July 29, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants