public enum EMandatory extends Enum<EMandatory> implements IMandatoryIndicator
| Modifier and Type | Method and Description |
|---|---|
EMandatory |
and(IMandatoryIndicator aMandatory) |
boolean |
isMandatory() |
boolean |
isOptional() |
EMandatory |
or(IMandatoryIndicator aMandatory) |
static EMandatory |
valueOf(boolean bMandatory) |
static EMandatory |
valueOf(IMandatoryIndicator aMandatoryIndicator) |
static EMandatory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMandatory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMandatory MANDATORY
public static final EMandatory OPTIONAL
public static EMandatory[] values()
for (EMandatory c : EMandatory.values()) System.out.println(c);
public static EMandatory 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 isMandatory()
isMandatory in interface IMandatoryIndicatortrue if mandatory and false if not
mandatory.public boolean isOptional()
isOptional in interface IMandatoryIndicatortrue if optional and false if not
optional.@Nonnull public EMandatory or(@Nonnull IMandatoryIndicator aMandatory)
@Nonnull public EMandatory and(@Nonnull IMandatoryIndicator aMandatory)
@Nonnull public static EMandatory valueOf(boolean bMandatory)
@Nonnull public static EMandatory valueOf(@Nonnull IMandatoryIndicator aMandatoryIndicator)
Copyright © 2014–2015 Philip Helger. All rights reserved.