public override bool Equals(object other)
        {
            DiskRange range = other as DiskRange;

            if (range == null || other.GetType() != GetType())
            {
                return(false);
            }
            return(equalRange((DiskRange)other));
        }
 public bool equalRange(DiskRange other)
 {
     return other.offset == offset && other.end == end;
 }
 public void addDiskRange(DiskRange diskRange)
 {
     diskRanges.Add(diskRange);
     totalLength += diskRange.getLength();
 }
 public bool equalRange(DiskRange other)
 {
     return(other.offset == offset && other.end == end);
 }
 public void addDiskRange(DiskRange diskRange)
 {
     diskRanges.Add(diskRange);
     totalLength += diskRange.getLength();
 }