C# Класс GitSharp.Core.Util.IntList

A more efficient List{Int32} using a primitive integer array.
Показать файл Открыть проект Примеры использования класса

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

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