Class DiskRange


  • public final class DiskRange
    extends Object
    • Constructor Detail

      • DiskRange

        public DiskRange​(long offset,
                         int length)
    • Method Detail

      • getOffset

        public long getOffset()
      • getLength

        public int getLength()
      • getEnd

        public long getEnd()
      • contains

        public boolean contains​(DiskRange diskRange)
      • span

        public DiskRange span​(DiskRange otherDiskRange)
        Returns the minimal DiskRange that encloses both this DiskRange and otherDiskRange. If there was a gap between the ranges the new range will cover that gap.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object