public static enum MockDirectoryWrapper.Throttling extends Enum<MockDirectoryWrapper.Throttling>
Enum Constant and Description |
---|
ALWAYS
always emulate a slow hard disk. could be very slow!
|
NEVER
never throttle output
|
SOMETIMES
sometimes (2% of the time) emulate a slow hard disk.
|
Modifier and Type | Method and Description |
---|---|
static MockDirectoryWrapper.Throttling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MockDirectoryWrapper.Throttling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MockDirectoryWrapper.Throttling ALWAYS
public static final MockDirectoryWrapper.Throttling SOMETIMES
public static final MockDirectoryWrapper.Throttling NEVER
public static MockDirectoryWrapper.Throttling[] values()
for (MockDirectoryWrapper.Throttling c : MockDirectoryWrapper.Throttling.values()) System.out.println(c);
public static MockDirectoryWrapper.Throttling valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null