C# 클래스 PutioFS.Core.LongRangeCollection

파일 보기 프로젝트 열기: firat/PutioFS 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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