]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/PathIterator.java
\t 2 \ \ \ \
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / PathIterator.java
index 40a9805cdbc949472f3dd6efdffa3f58c2f52f6f..5a286c9b410202977c49be6099aa04f6cc4dc243 100644 (file)
@@ -16,35 +16,35 @@ import java.io.File;
 import java.util.*;\r
 \r
 public final class PathIterator implements Common.ForDoAll {\r
-//      this PathIterator is based on HashSet, an thread implementation is required.\r
-       PathIterator(String path, int md) throws Exception {\r
-               startpath = path;\r
-               mode = md;\r
-               Common.toDoAll(startpath, this, mode);\r
-               it = pathlist.iterator();\r
-       }\r
-       private String startpath = null;\r
-       private int mode;\r
-       private HashSet<String> pathlist = new HashSet<String>();\r
-       private Iterator<String> it = null;\r
+//     this PathIterator is based on HashSet, an thread implementation is required.\r
+    PathIterator(String path, int md) throws Exception {\r
+        startpath = path;\r
+        mode = md;\r
+        Common.toDoAll(startpath, this, mode);\r
+        it = pathlist.iterator();\r
+    }\r
+    private String startpath = null;\r
+    private int mode;\r
+    private HashSet<String> pathlist = new HashSet<String>();\r
+    private Iterator<String> it = null;\r
 \r
-       public final void run(String path) throws Exception {\r
-               pathlist.add(path);\r
-       }\r
+    public final void run(String path) throws Exception {\r
+        pathlist.add(path);\r
+    }\r
 \r
-       public boolean filter(File dir) {\r
-               return true;\r
-       }\r
-       \r
-       public final String next() {\r
-               return it.next();\r
-       }\r
+    public boolean filter(File dir) {\r
+        return true;\r
+    }\r
+    \r
+    public final String next() {\r
+        return it.next();\r
+    }\r
 \r
-       public final boolean hasNext() {\r
-               return it.hasNext();\r
-       }\r
+    public final boolean hasNext() {\r
+        return it.hasNext();\r
+    }\r
 \r
-       public final String toString() {\r
-               return pathlist.toString();\r
-       }\r
+    public final String toString() {\r
+        return pathlist.toString();\r
+    }\r
 }\r