xref: /applications/standard/filepicker/audiopicker/src/main/ets/data/ObservedArray.ets
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /applications/standard/filepicker/audiopicker/src/main/ets/data/
1bea4f105Sopenharmony_ci/*
2bea4f105Sopenharmony_ci * Copyright (c) Huawei Technologies Co., Ltd. 2021-2023. All rights reserved.
3bea4f105Sopenharmony_ci */
4bea4f105Sopenharmony_ci
5bea4f105Sopenharmony_ci/**
6bea4f105Sopenharmony_ci * [ObservedArray可观察的数组] <BR>
7bea4f105Sopenharmony_ci *
8bea4f105Sopenharmony_ci */
9bea4f105Sopenharmony_ci
10bea4f105Sopenharmony_ci@Observed
11bea4f105Sopenharmony_ciexport class ObservedArray<T> extends Array<T> {
12bea4f105Sopenharmony_ci  constructor(args?: T[]) {
13bea4f105Sopenharmony_ci    if (args instanceof Array) {
14bea4f105Sopenharmony_ci      super(...args);
15bea4f105Sopenharmony_ci    } else {
16bea4f105Sopenharmony_ci      super();
17bea4f105Sopenharmony_ci    }
18bea4f105Sopenharmony_ci  }
19bea4f105Sopenharmony_ci}

Indexes created Thu Nov 07 10:32:03 CST 2024