Method | Description | |
---|---|---|
CompareTo ( object obj ) : int |
First compare the Start values, if they are equal, compare End values.
|
|
Contains ( long value ) : System.Boolean |
Check if the range contains the given value.
|
|
Intersects ( |
Check if this object intersects with the given range. Start positions are inclusive and End positions are exclusive.
|
|
IsConsequent ( |
Check if this objects comes RIGHT AFTER or RIGHT BEFORE the given range. That is. this.Start is equal to range.End or vice versa.
|
|
LongRange ( long start, long end ) : System |
Never ever let a LongRange with an end value that is smaller than or equal to its start value
|
|
Merge ( |
Merge this LongRange with a one that intersects it.
|
|
TryMerge ( |
Try to merge two Ranges. Do nothing if they are not consecutive or intersecting ranges. Return true if merged, false otherwise.
|
public Contains ( long value ) : System.Boolean | ||
value | long | |
return | System.Boolean |
public Intersects ( |
||
range | ||
return | System.Boolean |
public IsConsequent ( |
||
range | ||
return | System.Boolean |
public LongRange ( long start, long end ) : System | ||
start | long | |
end | long | |
return | System |
public TryMerge ( |
||
range | ||
return | System.Boolean |