js-apidiff-compiler-and-runtime.md 26.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# JS API Changes of the Utils Subsystem

The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS.

## API Changes

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