com.alibaba.dubbo.rpc.protocol.thrift
Enum ThriftType

java.lang.Object
  extended by java.lang.Enum<ThriftType>
      extended by com.alibaba.dubbo.rpc.protocol.thrift.ThriftType
All Implemented Interfaces:
Serializable, Comparable<ThriftType>

public enum ThriftType
extends Enum<ThriftType>

Author:
kimi

Enum Constant Summary
BOOL
           
BYTE
           
DOUBLE
           
I16
           
I32
           
I64
           
STRING
           
 
Method Summary
static ThriftType get(Class<?> key)
           
static ThriftType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ThriftType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.