public enum YopContentType extends Enum<YopContentType>
| 枚举常量和说明 |
|---|
FORM_URL_ENCODE |
JSON |
MULTIPART_FORM |
OCTET_STREAM |
TEXT_PLAIN |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getValue() |
void |
setValue(String value) |
static YopContentType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static YopContentType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final YopContentType FORM_URL_ENCODE
public static final YopContentType MULTIPART_FORM
public static final YopContentType JSON
public static final YopContentType OCTET_STREAM
public static final YopContentType TEXT_PLAIN
public static YopContentType[] values()
for (YopContentType c : YopContentType.values()) System.out.println(c);
public static YopContentType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getValue()
public void setValue(String value)
Copyright © 2024. All rights reserved.