public enum FileTreeRootType extends java.lang.Enum<FileTreeRootType>
| Enum Constant and Description |
|---|
drives
System hard drives as roots.
|
system
Root offered by underlying operating system.
|
userHome
User home folder as root.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<java.io.File> |
getRoots()
Returns root files for current tree root type.
|
static FileTreeRootType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileTreeRootType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileTreeRootType system
public static final FileTreeRootType drives
public static final FileTreeRootType userHome
public static FileTreeRootType[] values()
for (FileTreeRootType c : FileTreeRootType.values()) System.out.println(c);
public static FileTreeRootType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract java.util.List<java.io.File> getRoots()