public enum FlowEnum extends Enum<FlowEnum>
| Enum Constant and Description |
|---|
Break
Break the flow (loop)
|
Continue
Continue the flow (loop)
|
Default
Default action of flow
|
Return
break the flow (method) and return form the method
|
Throw
break the flow (method) and throw some predefined exception
|
| Modifier and Type | Method and Description |
|---|---|
static FlowEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlowEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowEnum Default
public static final FlowEnum Continue
public static final FlowEnum Break
public static final FlowEnum Return
public static final FlowEnum Throw
public static FlowEnum[] values()
for (FlowEnum c : FlowEnum.values()) System.out.println(c);
public static FlowEnum 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 nullCopyright © 2024. All rights reserved.