public enum Http1Version extends Enum<Http1Version> implements org.apache.thrift.TEnum
Modifier and Type | Method and Description |
---|---|
static Http1Version |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static Http1Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http1Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http1Version HTTP_1_0
public static final Http1Version HTTP_1_1
public static Http1Version[] values()
for (Http1Version c : Http1Version.values()) System.out.println(c);
public static Http1Version 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 getValue()
getValue
in interface org.apache.thrift.TEnum
public static Http1Version findByValue(int value)
Copyright © 2016. All Rights Reserved.