public enum ConcernHolder extends java.lang.Enum<ConcernHolder>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.util.List<Concern> |
allowedConcerns() |
void |
clear() |
Concern |
getConcernByName(java.lang.String concernName) |
java.util.HashMap<java.lang.String,Concern> |
getConcerns() |
Concern |
getOrCreateConcern(java.lang.String name)
Procura concern por nome.
|
static ConcernHolder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConcernHolder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcernHolder INSTANCE
public static ConcernHolder[] values()
for (ConcernHolder c : ConcernHolder.values()) System.out.println(c);
public static ConcernHolder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Concern getOrCreateConcern(java.lang.String name) throws ConcernNotFoundException
Se o concern não estiver no arquivo de profile é lançada uma Exception.
name
- ConcernNotFoundException
public java.util.HashMap<java.lang.String,Concern> getConcerns()
public Concern getConcernByName(java.lang.String concernName)
public java.util.List<Concern> allowedConcerns()
public void clear()