Always include -Infinity/+Infinity in Range.of

Description

Some data types actually have a representation of infinity (doubles for example), so excluding it might result in excluding some documents.

Since the only way to produce ranges with an "Infinity" bound is to pass null to Range.of, what we really mean is not "up to Infinity excluded", but really "just include everything". Including infinity is thus a much better match.

In the Range.of method that allows the caller to pass bound inclusions explicitly, we might want to follow the inclusions passed by the user, though.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major