ArrayListAdapter
概述
ArrayListAdapter 是 Aspose.3D FOSS 中用于 Python 的类。
适配器类,封装 List[T] 并实现 IArrayList[T]。
此类为 Python 程序中的 ArrayListAdapter 对象声明了 10 个方法。可用的方法包括:__init__, add, add_range, append, clear, index_of, insert, remove, remove_at, to_array。在安装了 Aspose.3D FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
__init__(data: List[T]) | Calls init(data) 在此 ArrayListAdapter 实例上。 |
add(item: T) | 在此 ArrayListAdapter 实例上调用 add(item)。 |
append(item: T) | 在此 ArrayListAdapter 实例上调用 append(item)。 |
clear() | 在此 ArrayListAdapter 实例上调用 clear。 |
remove(item: T) → bool | 在此 ArrayListAdapter 实例上调用 remove(item)。 |
insert(index: int, item: T) | 在此 ArrayListAdapter 实例上调用 insert(index, item)。 |
remove_at(index: int) | 在此 ArrayListAdapter 实例上调用 remove_at(index)。 |
index_of(item: T) → int | 在此 ArrayListAdapter 实例上调用 index_of(item)。 |
to_array() → List[T] | 在此 ArrayListAdapter 实例上调用 to_array。 |
add_range(collection) | 在此 ArrayListAdapter 实例上调用 add_range(collection)。 |