public enum NetworkType extends Enum<NetworkType>
| 限定符和类型 | 方法和说明 |
|---|---|
static NetworkType |
forNumber(int value)
For number message type.
|
String |
getDescription() |
int |
getValue() |
void |
setDescription(String description) |
void |
setValue(int value) |
static NetworkType |
valueOf(int value)
Value of message type.
|
static NetworkType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static NetworkType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final NetworkType TCP
public static final NetworkType HTTP
public static final NetworkType HTTPS
public static final NetworkType TLS
public static NetworkType[] values()
for (NetworkType c : NetworkType.values()) System.out.println(c);
public static NetworkType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static NetworkType valueOf(int value)
value - the valuepublic static NetworkType forNumber(int value)
value - the valuepublic int getValue()
public void setValue(int value)
public String getDescription()
public void setDescription(String description)
Copyright © 2022. All rights reserved.