ArrayListAdapter
Przegląd
ArrayListAdapter jest klasą w Aspose.3D FOSS dla Python.
Klasa adaptera, która opakowuje List[T] i implementuje IArrayList[T].
Ta klasa deklaruje 10 metod dla obiektów ArrayListAdapter w programach Python. Dostępne metody to: __init__, add, add_range, append, clear, index_of, insert, remove, remove_at, to_array. Wszystkie publiczne członki są dostępne dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.3D FOSS dla Python.
Metody
| Sygnatura | Opis |
|---|---|
__init__(data: List[T]) | Calls init(data) w tej instancji ArrayListAdapter. |
add(item: T) | Wywołuje add(item) w tej instancji ArrayListAdapter. |
append(item: T) | Wywołuje append(item) w tej instancji ArrayListAdapter. |
clear() | Wywołuje clear w tej instancji ArrayListAdapter. |
remove(item: T) → bool | Wywołuje remove(item) na tej instancji ArrayListAdapter. |
insert(index: int, item: T) | Wywołuje insert(index, item) na tej instancji ArrayListAdapter. |
remove_at(index: int) | Wywołuje remove_at(index) na tej instancji ArrayListAdapter. |
index_of(item: T) → int | Wywołuje index_of(item) na tej instancji ArrayListAdapter. |
to_array() → List[T] | Wywołuje to_array na tej instancji ArrayListAdapter. |
add_range(collection) | Wywołuje add_range(collection) na tej instancji ArrayListAdapter. |