withOptions method

Returns a comparer operating over the same interval as this one, but with the given set of options.

This method does not modify the comparer on which it's called.

options: New set of options, which must consist of flags defined within the Options enum. ArgumentOutOfRangeException: The specified options are invalid. Returns: A comparer operating over the same interval as this one, but with the given set of options.

Implementation

ZoneEqualityComparer withOptions(ZoneEqualityComparerOptions options) {
  return _options == options ? this : ZoneEqualityComparer._(_interval, options);
}