public enum EEnabled extends Enum<EEnabled> implements IEnabledIndicator
| Modifier and Type | Method and Description |
|---|---|
EEnabled |
and(IEnabledIndicator aEnabled) |
boolean |
isDisabled() |
boolean |
isEnabled() |
EEnabled |
or(IEnabledIndicator aEnabled) |
static EEnabled |
valueOf(boolean bEnabled) |
static EEnabled |
valueOf(IEnabledIndicator aEnabledIndicator) |
static EEnabled |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EEnabled[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EEnabled ENABLED
public static final EEnabled DISABLED
public static EEnabled[] values()
for (EEnabled c : EEnabled.values()) System.out.println(c);
public static EEnabled 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 isEnabled()
isEnabled in interface IEnabledIndicatortrue if the object is currently enabled,
false otherwise.public boolean isDisabled()
isDisabled in interface IEnabledIndicatortrue if the object is currently disabled,
false otherwise.@Nonnull public EEnabled or(@Nonnull IEnabledIndicator aEnabled)
@Nonnull public EEnabled and(@Nonnull IEnabledIndicator aEnabled)
@Nonnull public static EEnabled valueOf(@Nonnull IEnabledIndicator aEnabledIndicator)
Copyright © 2006–2015 phloc systems. All rights reserved.