public static enum MaxFragmentLengthExtension.Length extends Enum<MaxFragmentLengthExtension.Length>
| Enum Constant and Description |
|---|
BYTES_1024 |
BYTES_2048 |
BYTES_4096 |
BYTES_512 |
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
static MaxFragmentLengthExtension.Length |
fromCode(int code)
Creates an instance from its code.
|
int |
length()
Gets the length in bytes this code represents.
|
static MaxFragmentLengthExtension.Length |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaxFragmentLengthExtension.Length[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaxFragmentLengthExtension.Length BYTES_512
public static final MaxFragmentLengthExtension.Length BYTES_1024
public static final MaxFragmentLengthExtension.Length BYTES_2048
public static final MaxFragmentLengthExtension.Length BYTES_4096
public static MaxFragmentLengthExtension.Length[] values()
for (MaxFragmentLengthExtension.Length c : MaxFragmentLengthExtension.Length.values()) System.out.println(c);
public static MaxFragmentLengthExtension.Length 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 code()
public int length()
public static MaxFragmentLengthExtension.Length fromCode(int code)
code - the codenull if the given code is unknownCopyright © 2023 Eclipse Foundation. All rights reserved.