1# 公共基础库子系统JS API变更 2 3OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础库子系统的API变更如下: 4 5## 接口变更 6 7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | 8|---|---|---|---| 9| ohos.xml | XmlPullParser | parse(option: ParseOptions): void; | 新增 | 10| ohos.xml | XmlPullParser | constructor(buffer: ArrayBuffer \| DataView, encoding?: string); | 新增 | 11| ohos.xml | ParseOptions | tokenValueCallbackFunction?: (eventType: EventType, value: ParseInfo) => boolean; | 新增 | 12| ohos.xml | ParseOptions | attributeValueCallbackFunction?: (name: string, value: string) => boolean; | 新增 | 13| ohos.xml | ParseOptions | tagValueCallbackFunction?: (name: string, value: string) => boolean; | 新增 | 14| ohos.xml | ParseOptions | ignoreNameSpace?: boolean; | 新增 | 15| ohos.xml | ParseOptions | supportDoctype?: boolean; | 新增 | 16| ohos.xml | ParseInfo | getAttributeCount(): number; | 新增 | 17| ohos.xml | ParseInfo | isWhitespace(): boolean; | 新增 | 18| ohos.xml | ParseInfo | isEmptyElementTag(): boolean; | 新增 | 19| ohos.xml | ParseInfo | getText(): string; | 新增 | 20| ohos.xml | ParseInfo | getPrefix(): string; | 新增 | 21| ohos.xml | ParseInfo | getNamespace(): string; | 新增 | 22| ohos.xml | ParseInfo | getName(): string; | 新增 | 23| ohos.xml | ParseInfo | getLineNumber(): number; | 新增 | 24| ohos.xml | ParseInfo | getDepth(): number; | 新增 | 25| ohos.xml | ParseInfo | getColumnNumber(): number; | 新增 | 26| ohos.xml | EventType | WHITESPACE | 新增 | 27| ohos.xml | EventType | ENTITY_REFERENCE | 新增 | 28| ohos.xml | EventType | INSTRUCTION | 新增 | 29| ohos.xml | EventType | DOCDECL | 新增 | 30| ohos.xml | EventType | COMMENT | 新增 | 31| ohos.xml | EventType | CDSECT | 新增 | 32| ohos.xml | EventType | TEXT | 新增 | 33| ohos.xml | EventType | END_TAG | 新增 | 34| ohos.xml | EventType | START_TAG | 新增 | 35| ohos.xml | EventType | END_DOCUMENT | 新增 | 36| ohos.xml | EventType | START_DOCUMENT | 新增 | 37| ohos.xml | XmlSerializer | setDocType(text: string): void; | 新增 | 38| ohos.xml | XmlSerializer | setText(text: string): void; | 新增 | 39| ohos.xml | XmlSerializer | setCDATA(text: string): void; | 新增 | 40| ohos.xml | XmlSerializer | setComment(text: string): void; | 新增 | 41| ohos.xml | XmlSerializer | setNamespace(prefix: string, namespace: string): void; | 新增 | 42| ohos.xml | XmlSerializer | endElement(): void; | 新增 | 43| ohos.xml | XmlSerializer | startElement(name: string): void; | 新增 | 44| ohos.xml | XmlSerializer | setDeclaration(): void; | 新增 | 45| ohos.xml | XmlSerializer | addEmptyElement(name: string): void; | 新增 | 46| ohos.xml | XmlSerializer | setAttributes(name: string, value: string): void; | 新增 | 47| ohos.xml | XmlSerializer | constructor(buffer: ArrayBuffer \| DataView, encoding?: string); | 新增 | 48| ohos.util.Vector | Vector | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 49| ohos.util.Vector | Vector | copyToArray(array: Array\<T>): void; | 新增 | 50| ohos.util.Vector | Vector | trimToCurrentLength(): void; | 新增 | 51| ohos.util.Vector | Vector | toString(): string; | 新增 | 52| ohos.util.Vector | Vector | increaseCapacityTo(newCapacity: number): void; | 新增 | 53| ohos.util.Vector | Vector | isEmpty(): boolean; | 新增 | 54| ohos.util.Vector | Vector | convertToArray(): Array\<T>; | 新增 | 55| ohos.util.Vector | Vector | getCapacity(): number; | 新增 | 56| ohos.util.Vector | Vector | setLength(newSize: number): void; | 新增 | 57| ohos.util.Vector | Vector | clone(): Vector\<T>; | 新增 | 58| ohos.util.Vector | Vector | clear(): void; | 新增 | 59| ohos.util.Vector | Vector | subVector(fromIndex: number, toIndex: number): Vector\<T>; | 新增 | 60| ohos.util.Vector | Vector | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | 新增 | 61| ohos.util.Vector | Vector | forEach(callbackfn: (value: T, index?: number, vector?: Vector\<T>) => void, thisArg?: Object): void; | 新增 | 62| ohos.util.Vector | Vector | replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector\<T>) => T, thisArg?: Object): void; | 新增 | 63| ohos.util.Vector | Vector | removeByRange(fromIndex: number, toIndex: number): void; | 新增 | 64| ohos.util.Vector | Vector | getIndexFrom(element: T, index: number): number; | 新增 | 65| ohos.util.Vector | Vector | getLastIndexFrom(element: T, index: number): number; | 新增 | 66| ohos.util.Vector | Vector | getLastIndexOf(element: T): number; | 新增 | 67| ohos.util.Vector | Vector | set(index: number, element: T): T; | 新增 | 68| ohos.util.Vector | Vector | remove(element: T): boolean; | 新增 | 69| ohos.util.Vector | Vector | removeByIndex(index: number): T; | 新增 | 70| ohos.util.Vector | Vector | getLastElement(): T; | 新增 | 71| ohos.util.Vector | Vector | getFirstElement(): T; | 新增 | 72| ohos.util.Vector | Vector | getIndexOf(element: T): number; | 新增 | 73| ohos.util.Vector | Vector | get(index: number): T; | 新增 | 74| ohos.util.Vector | Vector | has(element: T): boolean; | 新增 | 75| ohos.util.Vector | Vector | insert(element: T, index: number): void; | 新增 | 76| ohos.util.Vector | Vector | add(element: T): boolean; | 新增 | 77| ohos.util.Vector | Vector | length: number; | 新增 | 78| ohos.util.Vector | Vector | constructor(); | 新增 | 79| ohos.util.TreeSet | TreeSet | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 80| ohos.util.TreeSet | TreeSet | entries(): IterableIterator\<[T, T]>; | 新增 | 81| ohos.util.TreeSet | TreeSet | values(): IterableIterator\<T>; | 新增 | 82| ohos.util.TreeSet | TreeSet | forEach(callbackfn: (value?: T, key?: T, set?: TreeSet\<T>) => void, thisArg?: Object): void; | 新增 | 83| ohos.util.TreeSet | TreeSet | popLast(): T; | 新增 | 84| ohos.util.TreeSet | TreeSet | popFirst(): T; | 新增 | 85| ohos.util.TreeSet | TreeSet | getHigherValue(key: T): T; | 新增 | 86| ohos.util.TreeSet | TreeSet | getLowerValue(key: T): T; | 新增 | 87| ohos.util.TreeSet | TreeSet | getLastValue(): T; | 新增 | 88| ohos.util.TreeSet | TreeSet | getFirstValue(): T; | 新增 | 89| ohos.util.TreeSet | TreeSet | clear(): void; | 新增 | 90| ohos.util.TreeSet | TreeSet | remove(value: T): boolean; | 新增 | 91| ohos.util.TreeSet | TreeSet | add(value: T): boolean; | 新增 | 92| ohos.util.TreeSet | TreeSet | has(value: T): boolean; | 新增 | 93| ohos.util.TreeSet | TreeSet | isEmpty(): boolean; | 新增 | 94| ohos.util.TreeSet | TreeSet | length: number; | 新增 | 95| ohos.util.TreeSet | TreeSet | constructor(comparator?: (firstValue: T, secondValue: T) => boolean) | 新增 | 96| ohos.util.TreeMap | TreeMap | \[Symbol.iterator](): IterableIterator\<[K, V]>; | 新增 | 97| ohos.util.TreeMap | TreeMap | entries(): IterableIterator\<[K, V]>; | 新增 | 98| ohos.util.TreeMap | TreeMap | forEach(callbackfn: (value?: V, key?: K, map?: TreeMap\<K, V>) => void, thisArg?: Object): void; | 新增 | 99| ohos.util.TreeMap | TreeMap | replace(key: K, newValue: V): boolean; | 新增 | 100| ohos.util.TreeMap | TreeMap | values(): IterableIterator\<V>; | 新增 | 101| ohos.util.TreeMap | TreeMap | keys(): IterableIterator\<K>; | 新增 | 102| ohos.util.TreeMap | TreeMap | getHigherKey(key: K): K; | 新增 | 103| ohos.util.TreeMap | TreeMap | getLowerKey(key: K): K; | 新增 | 104| ohos.util.TreeMap | TreeMap | clear(): void; | 新增 | 105| ohos.util.TreeMap | TreeMap | remove(key: K): V; | 新增 | 106| ohos.util.TreeMap | TreeMap | set(key: K, value: V): Object; | 新增 | 107| ohos.util.TreeMap | TreeMap | setAll(map: TreeMap\<K, V>): void; | 新增 | 108| ohos.util.TreeMap | TreeMap | getLastKey(): K; | 新增 | 109| ohos.util.TreeMap | TreeMap | getFirstKey(): K; | 新增 | 110| ohos.util.TreeMap | TreeMap | get(key: K): V; | 新增 | 111| ohos.util.TreeMap | TreeMap | hasValue(value: V): boolean; | 新增 | 112| ohos.util.TreeMap | TreeMap | hasKey(key: K): boolean; | 新增 | 113| ohos.util.TreeMap | TreeMap | isEmpty(): boolean; | 新增 | 114| ohos.util.TreeMap | TreeMap | length: number; | 新增 | 115| ohos.util.TreeMap | TreeMap | constructor(comparator?: (firstValue: K, secondValue: K) => boolean); | 新增 | 116| ohos.util.Stack | Stack | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 117| ohos.util.Stack | Stack | forEach(callbackfn: (value: T, index?: number, stack?: Stack\<T>) => void, thisArg?: Object): void; | 新增 | 118| ohos.util.Stack | Stack | locate(element: T): number; | 新增 | 119| ohos.util.Stack | Stack | push(item: T): T; | 新增 | 120| ohos.util.Stack | Stack | pop(): T; | 新增 | 121| ohos.util.Stack | Stack | peek(): T; | 新增 | 122| ohos.util.Stack | Stack | isEmpty(): boolean; | 新增 | 123| ohos.util.Stack | Stack | length: number; | 新增 | 124| ohos.util.Stack | Stack | constructor(); | 新增 | 125| ohos.util.Queue | Queue | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 126| ohos.util.Queue | Queue | forEach(callbackfn: (value: T, index?: number, Queue?: Queue\<T>) => void, thisArg?: Object): void; | 新增 | 127| ohos.util.Queue | Queue | pop(): T; | 新增 | 128| ohos.util.Queue | Queue | getFirst(): T; | 新增 | 129| ohos.util.Queue | Queue | add(element: T): boolean; | 新增 | 130| ohos.util.Queue | Queue | length: number; | 新增 | 131| ohos.util.Queue | Queue | constructor(); | 新增 | 132| ohos.util.PlainArray | PlainArray | \[Symbol.iterator](): IterableIterator\<[number, T]>; | 新增 | 133| ohos.util.PlainArray | PlainArray | forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray\<T>) => void, thisArg?: Object): void; | 新增 | 134| ohos.util.PlainArray | PlainArray | getValueAt(index: number): T; | 新增 | 135| ohos.util.PlainArray | PlainArray | toString(): String; | 新增 | 136| ohos.util.PlainArray | PlainArray | setValueAt(index: number, value: T): void; | 新增 | 137| ohos.util.PlainArray | PlainArray | removeRangeFrom(index: number, size: number): number; | 新增 | 138| ohos.util.PlainArray | PlainArray | removeAt(index: number): T; | 新增 | 139| ohos.util.PlainArray | PlainArray | remove(key: number): T; | 新增 | 140| ohos.util.PlainArray | PlainArray | getKeyAt(index: number): number; | 新增 | 141| ohos.util.PlainArray | PlainArray | isEmpty(): boolean; | 新增 | 142| ohos.util.PlainArray | PlainArray | getIndexOfValue(value: T): number; | 新增 | 143| ohos.util.PlainArray | PlainArray | getIndexOfKey(key: number): number; | 新增 | 144| ohos.util.PlainArray | PlainArray | get(key: number): T; | 新增 | 145| ohos.util.PlainArray | PlainArray | has(key: number): boolean; | 新增 | 146| ohos.util.PlainArray | PlainArray | clone(): PlainArray\<T>; | 新增 | 147| ohos.util.PlainArray | PlainArray | clear(): void; | 新增 | 148| ohos.util.PlainArray | PlainArray | add(key: number, value: T): void; | 新增 | 149| ohos.util.PlainArray | PlainArray | length: number; | 新增 | 150| ohos.util.PlainArray | PlainArray | constructor(); | 新增 | 151| ohos.util.List | List | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 152| ohos.util.List | List | isEmpty(): boolean; | 新增 | 153| ohos.util.List | List | convertToArray(): Array\<T>; | 新增 | 154| ohos.util.List | List | replaceAllElements(callbackfn: (value: T, index?: number, list?: List\<T>) => T, thisArg?: Object): void; | 新增 | 155| ohos.util.List | List | getSubList(fromIndex: number, toIndex: number): List\<T>; | 新增 | 156| ohos.util.List | List | clear(): void; | 新增 | 157| ohos.util.List | List | sort(comparator: (firstValue: T, secondValue: T) => number): void; | 新增 | 158| ohos.util.List | List | forEach(callbackfn: (value: T, index?: number, List?: List\<T>) => void, thisArg?: Object): void; | 新增 | 159| ohos.util.List | List | equal(obj: Object): boolean; | 新增 | 160| ohos.util.List | List | set(index: number, element: T): T; | 新增 | 161| ohos.util.List | List | getLast(): T; | 新增 | 162| ohos.util.List | List | getFirst(): T; | 新增 | 163| ohos.util.List | List | getLastIndexOf(element: T): number; | 新增 | 164| ohos.util.List | List | remove(element: T): boolean; | 新增 | 165| ohos.util.List | List | removeByIndex(index: number): T; | 新增 | 166| ohos.util.List | List | getIndexOf(element: T): number; | 新增 | 167| ohos.util.List | List | has(element: T): boolean; | 新增 | 168| ohos.util.List | List | get(index: number): T; | 新增 | 169| ohos.util.List | List | insert(element: T, index: number): void; | 新增 | 170| ohos.util.List | List | add(element: T): boolean; | 新增 | 171| ohos.util.List | List | length: number; | 新增 | 172| ohos.util.List | List | constructor(); | 新增 | 173| ohos.util.LinkedList | LinkedList | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 174| ohos.util.LinkedList | LinkedList | convertToArray(): Array\<T>; | 新增 | 175| ohos.util.LinkedList | LinkedList | clone(): LinkedList\<T>; | 新增 | 176| ohos.util.LinkedList | LinkedList | clear(): void; | 新增 | 177| ohos.util.LinkedList | LinkedList | forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList\<T>) => void, thisArg?: Object): void; | 新增 | 178| ohos.util.LinkedList | LinkedList | set(index: number, element: T): T; | 新增 | 179| ohos.util.LinkedList | LinkedList | getLast(): T; | 新增 | 180| ohos.util.LinkedList | LinkedList | getFirst(): T; | 新增 | 181| ohos.util.LinkedList | LinkedList | getLastIndexOf(element: T): number; | 新增 | 182| ohos.util.LinkedList | LinkedList | removeLastFound(element: T): boolean; | 新增 | 183| ohos.util.LinkedList | LinkedList | removeFirstFound(element: T): boolean; | 新增 | 184| ohos.util.LinkedList | LinkedList | remove(element: T): boolean; | 新增 | 185| ohos.util.LinkedList | LinkedList | removeByIndex(index: number): T; | 新增 | 186| ohos.util.LinkedList | LinkedList | getIndexOf(element: T): number; | 新增 | 187| ohos.util.LinkedList | LinkedList | has(element: T): boolean; | 新增 | 188| ohos.util.LinkedList | LinkedList | removeLast(): T; | 新增 | 189| ohos.util.LinkedList | LinkedList | removeFirst(): T; | 新增 | 190| ohos.util.LinkedList | LinkedList | addFirst(element: T): void; | 新增 | 191| ohos.util.LinkedList | LinkedList | get(index: number): T; | 新增 | 192| ohos.util.LinkedList | LinkedList | insert(index: number, element: T): void; | 新增 | 193| ohos.util.LinkedList | LinkedList | add(element: T): boolean; | 新增 | 194| ohos.util.LinkedList | LinkedList | length: number; | 新增 | 195| ohos.util.LinkedList | LinkedList | constructor(); | 新增 | 196| ohos.util.LightWeightSet | LightWeightSet | isEmpty(): boolean; | 新增 | 197| ohos.util.LightWeightSet | LightWeightSet | entries(): IterableIterator\<[T, T]>; | 新增 | 198| ohos.util.LightWeightSet | LightWeightSet | values(): IterableIterator\<T>; | 新增 | 199| ohos.util.LightWeightSet | LightWeightSet | getValueAt(index: number): T; | 新增 | 200| ohos.util.LightWeightSet | LightWeightSet | toArray(): Array\<T>; | 新增 | 201| ohos.util.LightWeightSet | LightWeightSet | toString(): String; | 新增 | 202| ohos.util.LightWeightSet | LightWeightSet | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 203| ohos.util.LightWeightSet | LightWeightSet | forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet\<T>) => void, thisArg?: Object): void; | 新增 | 204| ohos.util.LightWeightSet | LightWeightSet | clear(): void; | 新增 | 205| ohos.util.LightWeightSet | LightWeightSet | removeAt(index: number): boolean; | 新增 | 206| ohos.util.LightWeightSet | LightWeightSet | remove(key: T): T; | 新增 | 207| ohos.util.LightWeightSet | LightWeightSet | getIndexOf(key: T): number; | 新增 | 208| ohos.util.LightWeightSet | LightWeightSet | increaseCapacityTo(minimumCapacity: number): void; | 新增 | 209| ohos.util.LightWeightSet | LightWeightSet | equal(obj: Object): boolean; | 新增 | 210| ohos.util.LightWeightSet | LightWeightSet | has(key: T): boolean; | 新增 | 211| ohos.util.LightWeightSet | LightWeightSet | hasAll(set: LightWeightSet\<T>): boolean; | 新增 | 212| ohos.util.LightWeightSet | LightWeightSet | addAll(set: LightWeightSet\<T>): boolean; | 新增 | 213| ohos.util.LightWeightSet | LightWeightSet | add(obj: T): boolean; | 新增 | 214| ohos.util.LightWeightSet | LightWeightSet | length: number; | 新增 | 215| ohos.util.LightWeightSet | LightWeightSet | constructor(); | 新增 | 216| ohos.util.LightWeightMap | LightWeightMap | values(): IterableIterator\<V>; | 新增 | 217| ohos.util.LightWeightMap | LightWeightMap | getValueAt(index: number): V; | 新增 | 218| ohos.util.LightWeightMap | LightWeightMap | toString(): String; | 新增 | 219| ohos.util.LightWeightMap | LightWeightMap | \[Symbol.iterator](): IterableIterator\<[K, V]>; | 新增 | 220| ohos.util.LightWeightMap | LightWeightMap | forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap\<K, V>) => void, thisArg?: Object): void; | 新增 | 221| ohos.util.LightWeightMap | LightWeightMap | setValueAt(index: number, newValue: V): boolean; | 新增 | 222| ohos.util.LightWeightMap | LightWeightMap | clear(): void; | 新增 | 223| ohos.util.LightWeightMap | LightWeightMap | removeAt(index: number): boolean; | 新增 | 224| ohos.util.LightWeightMap | LightWeightMap | remove(key: K): V; | 新增 | 225| ohos.util.LightWeightMap | LightWeightMap | set(key: K, value: V): Object; | 新增 | 226| ohos.util.LightWeightMap | LightWeightMap | setAll(map: LightWeightMap\<K, V>): void; | 新增 | 227| ohos.util.LightWeightMap | LightWeightMap | keys(): IterableIterator\<K>; | 新增 | 228| ohos.util.LightWeightMap | LightWeightMap | getKeyAt(index: number): K; | 新增 | 229| ohos.util.LightWeightMap | LightWeightMap | isEmpty(): boolean; | 新增 | 230| ohos.util.LightWeightMap | LightWeightMap | getIndexOfValue(value: V): number; | 新增 | 231| ohos.util.LightWeightMap | LightWeightMap | getIndexOfKey(key: K): number; | 新增 | 232| ohos.util.LightWeightMap | LightWeightMap | get(key: K): V; | 新增 | 233| ohos.util.LightWeightMap | LightWeightMap | entries(): IterableIterator\<[K, V]>; | 新增 | 234| ohos.util.LightWeightMap | LightWeightMap | increaseCapacityTo(minimumCapacity: number): void; | 新增 | 235| ohos.util.LightWeightMap | LightWeightMap | hasValue(value: V): boolean; | 新增 | 236| ohos.util.LightWeightMap | LightWeightMap | hasKey(key: K): boolean; | 新增 | 237| ohos.util.LightWeightMap | LightWeightMap | hasAll(map: LightWeightMap\<K, V>): boolean; | 新增 | 238| ohos.util.LightWeightMap | LightWeightMap | length: number; | 新增 | 239| ohos.util.LightWeightMap | LightWeightMap | constructor(); | 新增 | 240| ohos.util.HashSet | HashSet | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 241| ohos.util.HashSet | HashSet | entries(): IterableIterator\<[T, T]>; | 新增 | 242| ohos.util.HashSet | HashSet | values(): IterableIterator\<T>; | 新增 | 243| ohos.util.HashSet | HashSet | forEach(callbackfn: (value?: T, key?: T, set?: HashSet\<T>) => void, thisArg?: Object): void; | 新增 | 244| ohos.util.HashSet | HashSet | clear(): void; | 新增 | 245| ohos.util.HashSet | HashSet | remove(value: T): boolean; | 新增 | 246| ohos.util.HashSet | HashSet | add(value: T): boolean; | 新增 | 247| ohos.util.HashSet | HashSet | has(value: T): boolean; | 新增 | 248| ohos.util.HashSet | HashSet | isEmpty(): boolean; | 新增 | 249| ohos.util.HashSet | HashSet | length: number; | 新增 | 250| ohos.util.HashSet | HashSet | constructor(); | 新增 | 251| ohos.util.HashMap | HashMap | \[Symbol.iterator](): IterableIterator\<[K, V]>; | 新增 | 252| ohos.util.HashMap | HashMap | entries(): IterableIterator\<[K, V]>; | 新增 | 253| ohos.util.HashMap | HashMap | forEach(callbackfn: (value?: V, key?: K, map?: HashMap\<K, V>) => void, thisArg?: Object): void; | 新增 | 254| ohos.util.HashMap | HashMap | replace(key: K, newValue: V): boolean; | 新增 | 255| ohos.util.HashMap | HashMap | values(): IterableIterator\<V>; | 新增 | 256| ohos.util.HashMap | HashMap | keys(): IterableIterator\<K>; | 新增 | 257| ohos.util.HashMap | HashMap | clear(): void; | 新增 | 258| ohos.util.HashMap | HashMap | remove(key: K): V; | 新增 | 259| ohos.util.HashMap | HashMap | set(key: K, value: V): Object; | 新增 | 260| ohos.util.HashMap | HashMap | setAll(map: HashMap\<K, V>): void; | 新增 | 261| ohos.util.HashMap | HashMap | get(key: K): V; | 新增 | 262| ohos.util.HashMap | HashMap | hasValue(value: V): boolean; | 新增 | 263| ohos.util.HashMap | HashMap | hasKey(key: K): boolean; | 新增 | 264| ohos.util.HashMap | HashMap | isEmpty(): boolean; | 新增 | 265| ohos.util.HashMap | HashMap | length: number; | 新增 | 266| ohos.util.HashMap | HashMap | constructor(); | 新增 | 267| ohos.util.Deque | Deque | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 268| ohos.util.Deque | Deque | forEach(callbackfn: (value: T, index?: number, deque?: Deque\<T>) => void, thisArg?: Object): void; | 新增 | 269| ohos.util.Deque | Deque | popLast(): T; | 新增 | 270| ohos.util.Deque | Deque | popFirst(): T; | 新增 | 271| ohos.util.Deque | Deque | getLast(): T; | 新增 | 272| ohos.util.Deque | Deque | getFirst(): T; | 新增 | 273| ohos.util.Deque | Deque | has(element: T): boolean; | 新增 | 274| ohos.util.Deque | Deque | insertEnd(element: T): void; | 新增 | 275| ohos.util.Deque | Deque | insertFront(element: T): void; | 新增 | 276| ohos.util.Deque | Deque | length: number; | 新增 | 277| ohos.util.Deque | Deque | constructor(); | 新增 | 278| ohos.util | types | isWeakSet(value: Object): boolean; | 新增 | 279| ohos.util | types | isWeakMap(value: Object): boolean; | 新增 | 280| ohos.util | types | isUint32Array(value: Object): boolean; | 新增 | 281| ohos.util | types | isUint16Array(value: Object): boolean; | 新增 | 282| ohos.util | types | isUint8ClampedArray(value: Object): boolean; | 新增 | 283| ohos.util | types | isUint8Array(value: Object): boolean; | 新增 | 284| ohos.util | types | isTypedArray(value: Object): boolean; | 新增 | 285| ohos.util | types | isSymbolObject(value: Object): boolean; | 新增 | 286| ohos.util | types | isStringObject(value: Object): boolean; | 新增 | 287| ohos.util | types | isSharedArrayBuffer(value: Object): boolean; | 新增 | 288| ohos.util | types | isSetIterator(value: Object): boolean; | 新增 | 289| ohos.util | types | isSet(value: Object): boolean; | 新增 | 290| ohos.util | types | isRegExp(value: Object): boolean; | 新增 | 291| ohos.util | types | isProxy(value: Object): boolean; | 新增 | 292| ohos.util | types | isPromise(value: Object): boolean; | 新增 | 293| ohos.util | types | isNumberObject(value: Object): boolean; | 新增 | 294| ohos.util | types | isNativeError(value: Object): boolean; | 新增 | 295| ohos.util | types | isModuleNamespaceObject(value: Object): boolean; | 新增 | 296| ohos.util | types | isMapIterator(value: Object): boolean; | 新增 | 297| ohos.util | types | isMap(value: Object): boolean; | 新增 | 298| ohos.util | types | isInt32Array(value: Object): boolean; | 新增 | 299| ohos.util | types | isInt16Array(value: Object): boolean; | 新增 | 300| ohos.util | types | isInt8Array(value: Object): boolean; | 新增 | 301| ohos.util | types | isGeneratorObject(value: Object): boolean; | 新增 | 302| ohos.util | types | isGeneratorFunction(value: Object): boolean; | 新增 | 303| ohos.util | types | isFloat64Array(value: Object): boolean; | 新增 | 304| ohos.util | types | isFloat32Array(value: Object): boolean; | 新增 | 305| ohos.util | types | isExternal(value: Object): boolean; | 新增 | 306| ohos.util | types | isDate(value: Object): boolean; | 新增 | 307| ohos.util | types | isDataView(value: Object): boolean; | 新增 | 308| ohos.util | types | isBoxedPrimitive(value: Object): boolean; | 新增 | 309| ohos.util | types | isBooleanObject(value: Object): boolean; | 新增 | 310| ohos.util | types | isBigUint64Array(value: Object): boolean; | 新增 | 311| ohos.util | types | isBigInt64Array(value: Object): boolean; | 新增 | 312| ohos.util | types | isAsyncFunction(value: Object): boolean; | 新增 | 313| ohos.util | types | isArrayBuffer(value: Object): boolean; | 新增 | 314| ohos.util | types | isArgumentsObject(value: Object): boolean; | 新增 | 315| ohos.util | types | isArrayBufferView(value: Object): boolean; | 新增 | 316| ohos.util | types | isAnyArrayBuffer(value: Object): boolean; | 新增 | 317| ohos.util | types | constructor(); | 新增 | 318| ohos.util | Base64 | decodeSync(src: Uint8Array \| string): Uint8Array; | 新增 | 319| ohos.util | Base64 | encodeToStringSync(src: Uint8Array): string; | 新增 | 320| ohos.util | Base64 | encodeSync(src: Uint8Array): Uint8Array; | 新增 | 321| ohos.util | LruBuffer | getCapacity(): number; | 新增 | 322| ohos.util | LruBuffer | length:number | 新增 | 323| ohos.util | RationalNumber | valueOf(): number; | 新增 | 324| ohos.util.ArrayList | ArrayList | \[Symbol.iterator](): IterableIterator\<T>; | 新增 | 325| ohos.util.ArrayList | ArrayList | trimToCurrentLength(): void; | 新增 | 326| ohos.util.ArrayList | ArrayList | increaseCapacityTo(newCapacity: number): void; | 新增 | 327| ohos.util.ArrayList | ArrayList | isEmpty(): boolean; | 新增 | 328| ohos.util.ArrayList | ArrayList | convertToArray(): Array\<T>; | 新增 | 329| ohos.util.ArrayList | ArrayList | getCapacity(): number; | 新增 | 330| ohos.util.ArrayList | ArrayList | clone(): ArrayList\<T>; | 新增 | 331| ohos.util.ArrayList | ArrayList | clear(): void; | 新增 | 332| ohos.util.ArrayList | ArrayList | subArrayList(fromIndex: number, toIndex: number): ArrayList\<T>; | 新增 | 333| ohos.util.ArrayList | ArrayList | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | 新增 | 334| ohos.util.ArrayList | ArrayList | forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList\<T>) => void, thisArg?: Object): void; | 新增 | 335| ohos.util.ArrayList | ArrayList | replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList\<T>) => T, thisArg?: Object): void; | 新增 | 336| ohos.util.ArrayList | ArrayList | removeByRange(fromIndex: number, toIndex: number): void; | 新增 | 337| ohos.util.ArrayList | ArrayList | getLastIndexOf(element: T): number; | 新增 | 338| ohos.util.ArrayList | ArrayList | remove(element: T): boolean; | 新增 | 339| ohos.util.ArrayList | ArrayList | removeByIndex(index: number): T; | 新增 | 340| ohos.util.ArrayList | ArrayList | getIndexOf(element: T): number; | 新增 | 341| ohos.util.ArrayList | ArrayList | has(element: T): boolean; | 新增 | 342| ohos.util.ArrayList | ArrayList | insert(element: T, index: number): void; | 新增 | 343| ohos.util.ArrayList | ArrayList | add(element: T): boolean; | 新增 | 344| ohos.util.ArrayList | ArrayList | length: number; | 新增 | 345| ohos.util.ArrayList | ArrayList | constructor(); | 新增 | 346| ohos.uri | URI | ssp: string; | 新增 | 347| ohos.uri | URI | authority: string; | 新增 | 348| ohos.uri | URI | fragment: string; | 新增 | 349| ohos.uri | URI | query: string; | 新增 | 350| ohos.uri | URI | path: string; | 新增 | 351| ohos.uri | URI | port: string; | 新增 | 352| ohos.uri | URI | host: string; | 新增 | 353| ohos.uri | URI | userInfo: string; | 新增 | 354| ohos.uri | URI | scheme: string; | 新增 | 355| ohos.uri | URI | normalize(): URI; | 新增 | 356| ohos.uri | URI | checkIsAbsolute(): boolean; | 新增 | 357| ohos.uri | URI | equals(other: URI): boolean; | 新增 | 358| ohos.uri | URI | toString(): string | 新增 | 359| ohos.uri | URI | constructor(uri: string); | 新增 | 360| ohos.convertxml | ConvertXML | convert(xml: string, options?: ConvertOptions) : Object; | 新增 | 361| ohos.convertxml | ConvertOptions | elementsKey: string; | 新增 | 362| ohos.convertxml | ConvertOptions | nameKey: string; | 新增 | 363| ohos.convertxml | ConvertOptions | typeKey: string; | 新增 | 364| ohos.convertxml | ConvertOptions | parentKey: string; | 新增 | 365| ohos.convertxml | ConvertOptions | commentKey: string; | 新增 | 366| ohos.convertxml | ConvertOptions | doctypeKey: string; | 新增 | 367| ohos.convertxml | ConvertOptions | cdataKey: string; | 新增 | 368| ohos.convertxml | ConvertOptions | textKey: string; | 新增 | 369| ohos.convertxml | ConvertOptions | attributesKey: string; | 新增 | 370| ohos.convertxml | ConvertOptions | instructionKey: string; | 新增 | 371| ohos.convertxml | ConvertOptions | declarationKey: string; | 新增 | 372| ohos.convertxml | ConvertOptions | ignoreText?: boolean; | 新增 | 373| ohos.convertxml | ConvertOptions | ignoreDoctype?: boolean; | 新增 | 374| ohos.convertxml | ConvertOptions | ignoreCDATA?: boolean; | 新增 | 375| ohos.convertxml | ConvertOptions | ignoreComment?: boolean; | 新增 | 376| ohos.convertxml | ConvertOptions | ignoreAttributes?: boolean; | 新增 | 377| ohos.convertxml | ConvertOptions | ignoreInstruction?: boolean; | 新增 | 378| ohos.convertxml | ConvertOptions | ignoreDeclaration?: boolean; | 新增 | 379| ohos.convertxml | ConvertOptions | trim: boolean; | 新增 | 380