public static enum Request.ProtoType extends Enum<Request.ProtoType>
| Enum Constant and Description |
|---|
REQUEST_DATA |
REQUEST_HELLO |
REQUEST_PING |
REQUEST_QUERY |
| Modifier and Type | Method and Description |
|---|---|
long |
id() |
static Request.ProtoType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Request.ProtoType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Request.ProtoType REQUEST_HELLO
public static final Request.ProtoType REQUEST_QUERY
public static final Request.ProtoType REQUEST_DATA
public static final Request.ProtoType REQUEST_PING
public static Request.ProtoType[] values()
for (Request.ProtoType c : Request.ProtoType.values()) System.out.println(c);
public static Request.ProtoType 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 nullpublic long id()
Copyright © 2021. All rights reserved.