Obtains entries within a range in this container, including the entry at the start position but not that at the end position, and returns these entries as a new **ArrayList** instance.
...
...
@@ -397,6 +401,7 @@ let result3 = arrayList.subArrayList(2, 6);
```
### clear
clear(): void
Clears this container and sets its length to **0**.
...
...
@@ -413,6 +418,7 @@ arrayList.clear();
```
### clone
clone(): ArrayList<T>
Clones this container and returns a copy. The modification to the copy does not affect the original instance.
...
...
@@ -436,6 +442,7 @@ let result = arrayList.clone();
```
### getCapacity
getCapacity(): number
Obtains the capacity of this container.
...
...
@@ -458,6 +465,7 @@ let result = arrayList.getCapacity();
```
### convertToArray
convertToArray(): Array<T>
Converts this container into an array.
...
...
@@ -480,6 +488,7 @@ let result = arrayList.convertToArray();
```
### isEmpty
isEmpty(): boolean
Checks whether this container is empty (contains no entry).
...
...
@@ -502,6 +511,7 @@ let result = arrayList.isEmpty();
Obtains entries within a range in this container, including the entry at the start position but not that at the end position, and returns these entries as a new **Vector** instance.
...
...
@@ -401,6 +406,7 @@ let result2 = vector.subVector(2,6);
```
### clear
clear(): void
Clears all entries in this container and sets its length to **0**.
...
...
@@ -417,6 +423,7 @@ vector.clear();
```
### clone
clone(): Vector<T>
Clones this container and returns a copy. The modification to the copy does not affect the original instance.
...
...
@@ -439,6 +446,7 @@ let result = vector.clone();
```
### getCapacity
getCapacity(): number
Obtains the capacity of this container.
...
...
@@ -461,6 +469,7 @@ let result = vector.getCapacity();
```
### convertToArray
convertToArray(): Array<T>
Converts this container into an array.
...
...
@@ -483,6 +492,7 @@ let result = vector.convertToArray();
```
### isEmpty
isEmpty(): boolean
Checks whether this container is empty (contains no entries).
...
...
@@ -505,6 +515,7 @@ let result = vector.isEmpty();
```
### increaseCapacityTo
increaseCapacityTo(newCapacity: number): void
Increases the capacity of this container.
...
...
@@ -700,6 +711,7 @@ let result = vector.getIndexFrom(4, 3);
```
### setLength
setLength(newSize: number): void
Sets a new length for this container.
...
...
@@ -723,6 +735,7 @@ vector.setLength(2);
```
### get
get(index: number): T
Obtains an entry at the specified position in this container.
...
...
@@ -750,6 +763,7 @@ Obtains an entry at the specified position in this container.
let result = vector.get(2);
```
### set
set(index: number, element: T): T
Replaces an entry at the specified position in this container with a given entry.