public enum EMandatory extends Enum<EMandatory> implements IMandatoryIndicator
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMandatory() |
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfand, isOptional, orpublic 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.@Nonnull public static EMandatory valueOf(boolean bMandatory)
@Nonnull public static EMandatory valueOf(@Nonnull IMandatoryIndicator aMandatoryIndicator)
Copyright © 2014–2016 Philip Helger. All rights reserved.