public enum KeyStatus extends Enum<KeyStatus>
Modifier and Type | Method and Description |
---|---|
static KeyStatus |
from(boolean active,
boolean enabled) |
boolean |
isActive() |
boolean |
isEnabled() |
static KeyStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyStatus ACTIVE
public static final KeyStatus PASSIVE
public static final KeyStatus DISABLED
public static KeyStatus[] values()
for (KeyStatus c : KeyStatus.values()) System.out.println(c);
public static KeyStatus 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 static KeyStatus from(boolean active, boolean enabled)
public boolean isActive()
public boolean isEnabled()
Copyright © 2019 JBoss by Red Hat. All rights reserved.