C# 클래스 GitSharp.Core.Util.IntList

A more efficient List{Int32} using a primitive integer array.
파일 보기 프로젝트 열기: stschake/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
IntList ( ) : System

Create an empty list with a default capacity.

IntList ( int capacity ) : System

Create an empty list with the specified capacity.

add ( int n ) : void

Add an entry to the end of the list.

clear ( ) : void

Empty this list

fillTo ( int toIndex, int val ) : void

Pad the list with entries.

get ( int i ) : int

size ( ) : int
toString ( ) : string

비공개 메소드들

메소드 설명
grow ( ) : void

메소드 상세

IntList() 공개 메소드

Create an empty list with a default capacity.
public IntList ( ) : System
리턴 System

IntList() 공개 메소드

Create an empty list with the specified capacity.
public IntList ( int capacity ) : System
capacity int number of entries the list can initially hold.
리턴 System

add() 공개 메소드

Add an entry to the end of the list.
public add ( int n ) : void
n int The nbumber to add
리턴 void

clear() 공개 메소드

Empty this list
public clear ( ) : void
리턴 void

fillTo() 공개 메소드

Pad the list with entries.
public fillTo ( int toIndex, int val ) : void
toIndex int index position to stop filling at. 0 inserts no filler. 1 ensures the list has a size of 1, adding val if the list is currently empty.
val int value to insert into padded positions.
리턴 void

get() 공개 메소드

public get ( int i ) : int
i int index to Read, must be in the range [0, ).
리턴 int

size() 공개 메소드

public size ( ) : int
리턴 int

toString() 공개 메소드

public toString ( ) : string
리턴 string