ArrayListAdapter
Tổng quan
ArrayListAdapter là một lớp trong Aspose.3D FOSS cho Python.
Lớp Adapter bao bọc List[T] và thực thi IArrayList[T].
Lớp này khai báo 10 phương thức cho các đối tượng ArrayListAdapter trong các chương trình Python. Các phương thức khả dụng bao gồm: __init__, add, add_range, append, clear, index_of, insert, remove, remove_at, to_array. Tất cả các thành viên công cộng đều có thể truy cập bởi bất kỳ ứng dụng Python nào sau khi cài đặt gói Aspose.3D FOSS cho Python.
Phương thức
| Chữ ký | Mô tả |
|---|---|
__init__(data: List[T]) | Calls init(data) trên instance ArrayListAdapter này. |
add(item: T) | Gọi add(item) trên instance ArrayListAdapter này. |
append(item: T) | Gọi append(item) trên instance ArrayListAdapter này. |
clear() | Gọi clear trên instance ArrayListAdapter này. |
remove(item: T) → bool | Gọi remove(item) trên thể hiện ArrayListAdapter này. |
insert(index: int, item: T) | Gọi insert(index, item) trên thể hiện ArrayListAdapter này. |
remove_at(index: int) | Gọi remove_at(index) trên thể hiện ArrayListAdapter này. |
index_of(item: T) → int | Gọi index_of(item) trên thể hiện ArrayListAdapter này. |
to_array() → List[T] | Gọi to_array trên đối tượng ArrayListAdapter này. |
add_range(collection) | Gọi add_range(collection) trên đối tượng ArrayListAdapter này. |