public static enum CommonEunm.ContentType extends Enum<CommonEunm.ContentType>
| 限定符和类型 | 方法和说明 |
|---|---|
static CommonEunm.ContentType |
getById(String id) |
String |
getId() |
static CommonEunm.ContentType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CommonEunm.ContentType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CommonEunm.ContentType HTML
public static final CommonEunm.ContentType PLAIN
public static final CommonEunm.ContentType XML
public static final CommonEunm.ContentType PNG
public static final CommonEunm.ContentType GIF
public static final CommonEunm.ContentType JPEG
public static final CommonEunm.ContentType JSON
public static final CommonEunm.ContentType XHTML
public static CommonEunm.ContentType[] values()
for (CommonEunm.ContentType c : CommonEunm.ContentType.values()) System.out.println(c);
public static CommonEunm.ContentType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getId()
public static CommonEunm.ContentType getById(String id)
Copyright © 2020. All rights reserved.