TreeIterator.d.ts 584 B

123456789101112131415
  1. import { ContainerIterator } from "../../ContainerBase";
  2. declare abstract class TreeIterator<K, V> extends ContainerIterator<K | [K, V]> {
  3. pre: () => this;
  4. next: () => this;
  5. /**
  6. * @description Get the sequential index of the iterator in the tree container.<br/>
  7. * <strong>
  8. * Note:
  9. * </strong>
  10. * This function only takes effect when the specified tree container `enableIndex = true`.
  11. */
  12. get index(): number;
  13. equals(obj: TreeIterator<K, V>): boolean;
  14. }
  15. export default TreeIterator;