Interface UnsignedLongSet.Entry

All Superinterfaces:
Immutable
Enclosing class:
UnsignedLongSet

public static sealed interface UnsignedLongSet.Entry extends Immutable
A single entry tracked in this set. It represents all discrete values in the range [lowerBits(), upperBits()].

The equivalent construct in RangeSet<UnsignedLong> terms is Range.closedOpen(UnsignedLong.fromLongBits(lowerBits), UnsignedLong.fromLongBits(upperBits + 1)).

We are saving two objects with this specialization and are more expressive by using closed range.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
  • Method Details

    • lowerBits

      long lowerBits()
    • upperBits

      long upperBits()