Метод | Описание | |
---|---|---|
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 | |
Результат | System.Boolean |
public Intersects ( |
||
range | ||
Результат | System.Boolean |
public IsConsequent ( |
||
range | ||
Результат | System.Boolean |
public LongRange ( long start, long end ) : System | ||
start | long | |
end | long | |
Результат | System |
public TryMerge ( |
||
range | ||
Результат | System.Boolean |