Package org.primefaces.showcase.domain
Enum CustomerStatus
- java.lang.Object
-
- java.lang.Enum<CustomerStatus>
-
- org.primefaces.showcase.domain.CustomerStatus
-
- All Implemented Interfaces:
Serializable,Comparable<CustomerStatus>
public enum CustomerStatus extends Enum<CustomerStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEGOTIATIONNEWPROPOSALQUALIFIEDRENEWALUNQUALIFIED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomerStatusrandom()static CustomerStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static CustomerStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUALIFIED
public static final CustomerStatus QUALIFIED
-
UNQUALIFIED
public static final CustomerStatus UNQUALIFIED
-
NEGOTIATION
public static final CustomerStatus NEGOTIATION
-
NEW
public static final CustomerStatus NEW
-
RENEWAL
public static final CustomerStatus RENEWAL
-
PROPOSAL
public static final CustomerStatus PROPOSAL
-
-
Method Detail
-
values
public static CustomerStatus[] 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 (CustomerStatus c : CustomerStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomerStatus 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 nameNullPointerException- if the argument is null
-
random
public static CustomerStatus random()
-
-