Class StartEndRangeEntry

    • Constructor Detail

      • StartEndRangeEntry

        public StartEndRangeEntry​(int startVendorId,
                                  int endVendorId)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface RangeEntry
        Returns:
        Size of range entry in bits
      • appendTo

        public int appendTo​(Bits buffer,
                            int currentOffset)
        Description copied from interface: RangeEntry
        Append this range entry to the bit buffer
        Specified by:
        appendTo in interface RangeEntry
        Parameters:
        buffer - bit buffer
        currentOffset - current offset in the buffer
        Returns:
        new offset
      • valid

        public boolean valid​(int maxVendorId)
        Description copied from interface: RangeEntry
        Check if range entry is valid for the specified max vendor id
        Specified by:
        valid in interface RangeEntry
        Parameters:
        maxVendorId - max vendor id
        Returns:
        true if range entry is valid, false otherwise