public static enum SuperSwitch.State extends Enum<SuperSwitch.State>
Enum Constant and Description |
---|
CANCEL
Cancel the call entirely and don't call super
|
PASS
Let the call pass and return the default value by calling the super method
|
REPLACE
Call super, but replace the returned value of the method
|
Modifier and Type | Method and Description |
---|---|
static SuperSwitch.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SuperSwitch.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SuperSwitch.State PASS
public static final SuperSwitch.State CANCEL
public static final SuperSwitch.State REPLACE
public static SuperSwitch.State[] values()
for (SuperSwitch.State c : SuperSwitch.State.values()) System.out.println(c);
public static SuperSwitch.State 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 © 2018. All rights reserved.