public static enum ProductDTO.CustomerTypeEnum extends Enum<ProductDTO.CustomerTypeEnum>
| Modifier and Type | Class and Description |
|---|---|
static class |
ProductDTO.CustomerTypeEnum.Adapter |
| Modifier and Type | Method and Description |
|---|---|
static ProductDTO.CustomerTypeEnum |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static ProductDTO.CustomerTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProductDTO.CustomerTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProductDTO.CustomerTypeEnum ADULT
public static final ProductDTO.CustomerTypeEnum CHILD
public static final ProductDTO.CustomerTypeEnum SENIOR
public static ProductDTO.CustomerTypeEnum[] values()
for (ProductDTO.CustomerTypeEnum c : ProductDTO.CustomerTypeEnum.values()) System.out.println(c);
public static ProductDTO.CustomerTypeEnum 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 String getValue()
public String toString()
toString in class Enum<ProductDTO.CustomerTypeEnum>public static ProductDTO.CustomerTypeEnum fromValue(String text)
Copyright © 2018. All rights reserved.