C# Класс PutioFS.Core.LongRangeCollection

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Max long
Min long
RangeSet SortedSet

Открытые методы

Метод Описание
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 ) : LongRange

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 ( ) : LongRangeCollection
Contains ( long start, long end ) : System.Boolean

Checks if the given range is in the collection.

LongRangeCollection ( long min, long max ) : System

Описание методов

AddRange() публичный Метод

Add the given range to the current collection.
public AddRange ( long start, long end ) : void
start long
end long
Результат void

BinaryIndexSearch() публичный Метод

Do a binary search, returning the index of the LongRange containing the value.
public BinaryIndexSearch ( long value ) : int
value long
Результат int

BinarySearch() публичный Метод

Find and return the Range that includes the given value. Returns null no range includes the given value.
public BinarySearch ( long value ) : LongRange
value long
Результат LongRange

Bisect() публичный Метод

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.
public Bisect ( long value ) : int
value long
Результат int

Clone() публичный Метод

public Clone ( ) : LongRangeCollection
Результат LongRangeCollection

Contains() публичный Метод

Checks if the given range is in the collection.
public Contains ( long start, long end ) : System.Boolean
start long
end long
Результат System.Boolean

LongRangeCollection() публичный Метод

public LongRangeCollection ( long min, long max ) : System
min long
max long
Результат System

Описание свойств

Max публичное свойство

public long Max
Результат long

Min публичное свойство

public long Min
Результат long

RangeSet публичное свойство

public SortedSet RangeSet
Результат SortedSet