# Collection 集合操作 集合操作包涵了各种你会感兴趣的数据结构。 # Iterator // TODO # List 类型:接口 Interface 泛型/模板:T 函數一览: | name | args | type | docs | | ----------- | ------ | ---- | --------------------------------------------------------------------------- | | add | T | T | Add the object into the collection, and return what is input. | | insert | T, int | T | Add the object into the target index, or make it to the array's last index. | | addAll | T[] | void | Put all of value in arg array into this list array. | | addAll | List!T | void | Put all of value in arg array into this list array. | | get | int | T | Get the target value in index. | | indexOf | T | int | Get the target index of. | | contains | T | bool | Return true when the target was in the list. | | removeAt | int | T | Remove the target object from list and return this object. | | removeFirst | T | T | Remove the first target object from list and return this object. | | clear | | void | Remove all value. | | size | | int | The length of list. | | asArray | | T[] | To array. | ## ArrayList 一套对数组进行封装的快速列表。 成员: - (Private) T[] array 构造函数: | args | docs | | ------ | ------------------------------------------------ | | | Create new ArrayList pure. | | T[] | Create new ArrayList with all value in agr list. | | List!T | Create new ArrayList with all value in agr list. | ## LinkedList 内部维护了一套有序链接节点的列表,可以快速的动态修改顺序。 成员: - (Private) Node firstNode - (Private) Node lastNode - (Private) int length - (Private) class Node 构造函数: | args | docs | | ------ | ------------------------------------------------ | | | Create new LinkedList pure. | # Map 键值对形式的映射表。 ## HashMap ## LinkedHashMap ## ImmutableMap # Mulitmap 一键对多制的映射表,内部封装了一套 List 进行操作。 ## Hashmutlimap # Pair(IPair) 键值对。 ## Pair ## ImmutablePair # Table 三元映射表,分横表与竖表。 # HashTable