public static enum NetworkUtil.ConnectStatus extends java.lang.Enum<NetworkUtil.ConnectStatus>
Enum Constant and Description |
---|
CONNECTABLE
可连接,http响应有效
|
FAIL
连接失败
|
INVALID_RESPONE
可连接,http响应无效
|
Modifier and Type | Method and Description |
---|---|
static NetworkUtil.ConnectStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkUtil.ConnectStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkUtil.ConnectStatus CONNECTABLE
public static final NetworkUtil.ConnectStatus INVALID_RESPONE
public static final NetworkUtil.ConnectStatus FAIL
public static NetworkUtil.ConnectStatus[] values()
for (NetworkUtil.ConnectStatus c : NetworkUtil.ConnectStatus.values()) System.out.println(c);
public static NetworkUtil.ConnectStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2019. All rights reserved.