Enum Constant and Description |
---|
empty
Just the named directory D, no entries.
|
exclude
Exclude (i.e, don't descend into) directory D.
|
files
D + its file children, but not subdirs.
|
immediates
D + immediate children (D and its entries).
|
infinity
D + all descendants (full recursion from D).
|
unknown
Depth undetermined or ignored.
|
Modifier and Type | Method and Description |
---|---|
static Depth |
infinityOrEmpty(boolean recurse) |
static Depth |
infinityOrFiles(boolean recurse) |
static Depth |
infinityOrImmediates(boolean recurse) |
static Depth |
unknownOrEmpty(boolean recurse) |
static Depth |
unknownOrFiles(boolean recurse) |
static Depth |
unknownOrImmediates(boolean recurse) |
static Depth |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Depth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Depth unknown
public static final Depth exclude
public static final Depth empty
public static final Depth files
public static final Depth immediates
public static final Depth infinity
public static Depth[] values()
for (Depth c : Depth.values()) System.out.println(c);
public static Depth 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 static final Depth infinityOrEmpty(boolean recurse)
public static final Depth infinityOrFiles(boolean recurse)
public static final Depth infinityOrImmediates(boolean recurse)
infinity
when
recurse
is true
, or immediates
otherwise.public static final Depth unknownOrEmpty(boolean recurse)
public static final Depth unknownOrFiles(boolean recurse)
public static final Depth unknownOrImmediates(boolean recurse)
unknown
when
recurse
is true
, or immediates
otherwise.