public enum ResourceType extends Enum<ResourceType>
文件名:ResourceType.java
用途:定义接口请求的资源类型枚举
编码时间:2022年8月4日 下午7:15:09
修改时间:2022年8月4日 下午7:15:09
Enum Constant and Description |
---|
DOCUMENT |
FETCH |
FONT |
IMAGE |
MEDIA |
OTHER |
SCRIPT |
STYLESHEET |
XHR |
Modifier and Type | Method and Description |
---|---|
static ResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType FETCH
public static final ResourceType XHR
public static final ResourceType SCRIPT
public static final ResourceType STYLESHEET
public static final ResourceType FONT
public static final ResourceType DOCUMENT
public static final ResourceType MEDIA
public static final ResourceType OTHER
public static final ResourceType IMAGE
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType 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 nullCopyright © 2024. All rights reserved.