public enum DeliveryType extends Enum<DeliveryType>
| 枚举常量和说明 |
|---|
ONLINE_DELIVERY
2 在线签约快递单
|
ONLINE_DELIVERY_SCATTER
4 在线快递散单
|
SELF_DELIVERY
1 自寄快递
|
VIRTUAL_DELIVERY
3 虚拟商品无需物流发货
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DeliveryType |
getDeliveryType(Integer key) |
Integer |
getKey() |
String |
getValue() |
static DeliveryType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DeliveryType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DeliveryType SELF_DELIVERY
public static final DeliveryType ONLINE_DELIVERY
public static final DeliveryType VIRTUAL_DELIVERY
public static final DeliveryType ONLINE_DELIVERY_SCATTER
public static DeliveryType[] values()
for (DeliveryType c : DeliveryType.values()) System.out.println(c);
public static DeliveryType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static DeliveryType getDeliveryType(Integer key)
public Integer getKey()
public String getValue()
Copyright © 2025. All rights reserved.