com.alibaba.dubbo.rpc.protocol.thrift
Enum ThriftType
java.lang.Object
java.lang.Enum<ThriftType>
com.alibaba.dubbo.rpc.protocol.thrift.ThriftType
- All Implemented Interfaces:
- Serializable, Comparable<ThriftType>
public enum ThriftType
- extends Enum<ThriftType>
- Author:
- kimi
BOOL
public static final ThriftType BOOL
BYTE
public static final ThriftType BYTE
I16
public static final ThriftType I16
I32
public static final ThriftType I32
I64
public static final ThriftType I64
DOUBLE
public static final ThriftType DOUBLE
STRING
public static final ThriftType STRING
values
public static ThriftType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ThriftType c : ThriftType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ThriftType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
get
public static ThriftType get(Class<?> key)
Copyright © 2012–2017 Alibaba. All rights reserved.