public enum LoopResult extends Enum<LoopResult>
Enum Constant and Description |
---|
Break
The loop should stop after the current iteration.
|
Continue
The loop should continue with the next iteration, if any.
|
Modifier and Type | Method and Description |
---|---|
static LoopResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoopResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoopResult Break
public static final LoopResult Continue
public static LoopResult[] values()
for (LoopResult c : LoopResult.values()) System.out.println(c);
public static LoopResult 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