| 枚举常量和说明 |
|---|
NOT_FOUND
40x
|
OK
20x
|
REDIRECT
30x
|
SERVER_ERROR
50x
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getFrom() |
int |
getTo() |
static Status |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Status[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Status OK
public static final Status REDIRECT
public static final Status NOT_FOUND
public static final Status SERVER_ERROR
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public int getFrom()
public int getTo()
Copyright © 2019. All Rights Reserved.