org.chorem.pollen.common
Enum PollType
java.lang.Object
java.lang.Enum<PollType>
org.chorem.pollen.common.PollType
- All Implemented Interfaces:
- Serializable, Comparable<PollType>, I18nAble
public enum PollType
- extends Enum<PollType>
- implements I18nAble
FREE
public static final PollType FREE
RESTRICTED
public static final PollType RESTRICTED
GROUP
public static final PollType GROUP
values
public static PollType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PollType c : PollType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PollType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getI18nKey
public String getI18nKey()
- Specified by:
getI18nKey in interface I18nAble
valueOf
public static PollType valueOf(int ordinal)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.