public enum ScrewdriverOperationType extends Enum<ScrewdriverOperationType>
Enum Constant and Description |
---|
LOOSEN
The screwdriver operation will follow the screw in a loosening direction (out).
|
TIGHTEN
The screwdriver operation will follow the screw in a tightening direction (in).
|
Modifier and Type | Method and Description |
---|---|
static ScrewdriverOperationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScrewdriverOperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScrewdriverOperationType TIGHTEN
public static final ScrewdriverOperationType LOOSEN
public static ScrewdriverOperationType[] values()
for (ScrewdriverOperationType c : ScrewdriverOperationType.values()) System.out.println(c);
public static ScrewdriverOperationType 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 © 2020. All rights reserved.