]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/MigrationTools/org/tianocore/migration/PathIterator.java
Coding Style
[mirror_edk2.git] / Tools / Java / Source / MigrationTools / org / tianocore / migration / PathIterator.java
index 5a286c9b410202977c49be6099aa04f6cc4dc243..39f25db0d32f4748570da2c6a82abf5ab8153c5f 100644 (file)
 package org.tianocore.migration;\r
 \r
 import java.io.File;\r
-import java.util.*;\r
+import java.util.HashSet;\r
+import java.util.Iterator;\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
-\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
-\r
-    public final boolean hasNext() {\r
-        return it.hasNext();\r
-    }\r
-\r
-    public final String toString() {\r
-        return pathlist.toString();\r
-    }\r
+       // this PathIterator is based on HashSet, an thread implementation is\r
+       // 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
+\r
+       private String startpath = null;\r
+\r
+       private int mode;\r
+\r
+       private HashSet<String> pathlist = new HashSet<String>();\r
+\r
+       private Iterator<String> it = null;\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
+\r
+       public final boolean hasNext() {\r
+               return it.hasNext();\r
+       }\r
+\r
+       public final String toString() {\r
+               return pathlist.toString();\r
+       }\r
 }\r