Ejemplo n.º 1
0
        public override bool Equals(object other)
        {
            DiskRange range = other as DiskRange;

            if (range == null || other.GetType() != GetType())
            {
                return(false);
            }
            return(equalRange((DiskRange)other));
        }
Ejemplo n.º 2
0
 public bool equalRange(DiskRange other)
 {
     return other.offset == offset && other.end == end;
 }
Ejemplo n.º 3
0
 public void addDiskRange(DiskRange diskRange)
 {
     diskRanges.Add(diskRange);
     totalLength += diskRange.getLength();
 }
Ejemplo n.º 4
0
 public bool equalRange(DiskRange other)
 {
     return(other.offset == offset && other.end == end);
 }
Ejemplo n.º 5
0
 public void addDiskRange(DiskRange diskRange)
 {
     diskRanges.Add(diskRange);
     totalLength += diskRange.getLength();
 }