Package manifold.io
Enum FileTreeWalk.FileWalkDirection
- java.lang.Object
-
- java.lang.Enum<FileTreeWalk.FileWalkDirection>
-
- manifold.io.FileTreeWalk.FileWalkDirection
-
- All Implemented Interfaces:
Serializable,Comparable<FileTreeWalk.FileWalkDirection>
- Enclosing class:
- FileTreeWalk
public static enum FileTreeWalk.FileWalkDirection extends Enum<FileTreeWalk.FileWalkDirection>
An enumeration to describe possible walk directions. There are two of them: beginning from parents, ending with children, and beginning from children, ending with parents. Both use depth-first search.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileTreeWalk.FileWalkDirectionvalueOf(String name)Returns the enum constant of this type with the specified name.static FileTreeWalk.FileWalkDirection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_DOWN
public static final FileTreeWalk.FileWalkDirection TOP_DOWN
Depth-first search, directory is visited BEFORE its files
-
BOTTOM_UP
public static final FileTreeWalk.FileWalkDirection BOTTOM_UP
Depth-first search, directory is visited AFTER its files
-
-
Method Detail
-
values
public static FileTreeWalk.FileWalkDirection[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileTreeWalk.FileWalkDirection c : FileTreeWalk.FileWalkDirection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileTreeWalk.FileWalkDirection valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-