public enum IncludeReplyLength extends Enum<IncludeReplyLength>
This enum is used to specify whether the length of the reply should be included in the response. It includes two options: omitLength and includeLength, each with a corresponding code and description.
| Enum Constant and Description |
|---|
includeLength |
omitLength |
| Modifier and Type | Method and Description |
|---|---|
static IncludeReplyLength |
fromValue(int code) |
int |
getCode() |
String |
toString() |
static IncludeReplyLength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IncludeReplyLength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IncludeReplyLength omitLength
public static final IncludeReplyLength includeLength
public static IncludeReplyLength[] values()
for (IncludeReplyLength c : IncludeReplyLength.values()) System.out.println(c);
public static IncludeReplyLength 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 int getCode()
public String toString()
toString in class Enum<IncludeReplyLength>public static IncludeReplyLength fromValue(int code)