| } | ||
| - private boolean isHardwareSwitch( final HardwareSwitch hwSwitch ) { | ||
| - final var os = getHardwareSwitch(); | ||
| - return os.isPresent() && os.get() == hwSwitch; | ||
| - } | ||
| - | ||
| /** | ||
| * Returns the number of values in the enumeration. | ||
| * | ||
| * @return {@link #values()}.length. | ||
| */ | ||
| static int size() { | ||
| return values().length; | ||
| + } | ||
| + | ||
| + private boolean isHardwareSwitch( final HardwareSwitch hwSwitch ) { | ||
| + final var os = getHardwareSwitch(); | ||
| + return os.isPresent() && os.get() == hwSwitch; | ||
| } | ||
| } |
| Author | DaveJarvis <email> |
|---|---|
| Date | 2020-08-04 15:20:49 GMT-0700 |
| Commit | 65dce9e3dca5dbc8166f0afddd6145046e022168 |
| Parent | 1414e9f |
| Delta | 5 lines added, 5 lines removed |