Beispiel #1
0
 public abstract Range <T> Intersect(Range <T> other);
Beispiel #2
0
 public abstract Range <T> Add(Range <T> other);
Beispiel #3
0
 public virtual Range <T> Subtract(Range <T> other)
 {
     return(Intersect(other.Complement));
 }
Beispiel #4
0
 public abstract bool OverlapsWith(Range <T> other);
Beispiel #5
0
 public override Range <T> Intersect(Range <T> other)
 {
     return(other);
 }
Beispiel #6
0
 public override Range <T> Add(Range <T> other)
 {
     return(this);
 }
Beispiel #7
0
 public override bool OverlapsWith(Range <T> other)
 {
     return(true);
 }
Beispiel #8
0
 public override Range <T> Subtract(Range <T> other)
 {
     return(this);
 }