메소드 | 설명 | |
---|---|---|
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 |
public IntList ( int capacity ) : System | ||
capacity | int | number of entries the list can initially hold. |
리턴 | System |
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 |