]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/MigrationTools/org/tianocore/migration/PathIterator.java
00dfe719aa2090d883256acb24de71b70303dbe7
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 package org
.tianocore
.migration
;
17 public final class PathIterator
implements Common
.ForDoAll
{
18 // this PathIterator is based on HashSet, an thread implementation is required.
19 PathIterator(String path
, int md
) throws Exception
{
22 Common
.toDoAll(startpath
, this, mode
);
23 it
= pathlist
.iterator();
25 private String startpath
= null;
27 private HashSet
<String
> pathlist
= new HashSet
<String
>();
28 private Iterator
<String
> it
= null;
30 public final void toDo(String path
) throws Exception
{
34 public final String
next() {
38 public final boolean hasNext() {
42 public final String
toString() {
43 return pathlist
.toString();