public enum OnOff extends Enum<OnOff>
Modifier and Type | Method and Description |
---|---|
boolean |
isOn()
Check if status is "on".
|
static OnOff |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnOff[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnOff ON
public static final OnOff OFF
public static OnOff[] values()
for (OnOff c : OnOff.values()) System.out.println(c);
public static OnOff 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 nullpublic boolean isOn()
Copyright © 2002-2022 CS GROUP. All rights reserved.