Property | Type | Description | |
---|---|---|---|
Max | long | ||
Min | long | ||
RangeSet | SortedSet |
Method | Description | |
---|---|---|
AddRange ( long start, long end ) : void |
Add the given range to the current collection.
|
|
BinaryIndexSearch ( long value ) : int |
Do a binary search, returning the index of the LongRange containing the value.
|
|
BinarySearch ( long value ) : |
Find and return the Range that includes the given value. Returns null no range includes the given value.
|
|
Bisect ( long value ) : int |
Find the index where this value would fit in if it was in the range collection. The value should not already be in the collection.
|
|
Clone ( ) : |
||
Contains ( long start, long end ) : System.Boolean |
Checks if the given range is in the collection.
|
|
LongRangeCollection ( long min, long max ) : System |
public AddRange ( long start, long end ) : void | ||
start | long | |
end | long | |
return | void |
public BinaryIndexSearch ( long value ) : int | ||
value | long | |
return | int |
public BinarySearch ( long value ) : |
||
value | long | |
return |
public Contains ( long start, long end ) : System.Boolean | ||
start | long | |
end | long | |
return | System.Boolean |
public LongRangeCollection ( long min, long max ) : System | ||
min | long | |
max | long | |
return | System |