@Immutable public class ThriftType extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ThriftType |
BINARY |
static ThriftType |
BOOL |
static ThriftType |
BYTE |
static ThriftType |
DOUBLE |
static ThriftType |
I16 |
static ThriftType |
I32 |
static ThriftType |
I64 |
static ThriftType |
STRING |
static ThriftType |
VOID |
| 构造器和说明 |
|---|
ThriftType(ThriftType uncoercedType,
java.lang.reflect.Type javaType) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ThriftType |
array(ThriftType valueType) |
ThriftType |
coerceTo(java.lang.reflect.Type javaType) |
static ThriftType |
enumType(ThriftEnumMetadata<?> enumMetadata) |
boolean |
equals(java.lang.Object o) |
ThriftEnumMetadata<?> |
getEnumMetadata() |
java.lang.reflect.Type |
getJavaType() |
ThriftType |
getKeyType() |
ThriftProtocolType |
getProtocolType() |
ThriftStructMetadata |
getStructMetadata() |
ThriftType |
getUncoercedType() |
ThriftType |
getValueType() |
int |
hashCode() |
boolean |
isCoerced() |
static <E> ThriftType |
list(ThriftType valueType) |
static <K,V> ThriftType |
map(ThriftType keyType,
ThriftType valueType) |
static <E> ThriftType |
set(ThriftType valueType) |
static ThriftType |
struct(ThriftStructMetadata structMetadata) |
java.lang.String |
toString() |
public static final ThriftType BOOL
public static final ThriftType BYTE
public static final ThriftType DOUBLE
public static final ThriftType I16
public static final ThriftType I32
public static final ThriftType I64
public static final ThriftType STRING
public static final ThriftType BINARY
public static final ThriftType VOID
public ThriftType(ThriftType uncoercedType, java.lang.reflect.Type javaType)
public static ThriftType struct(ThriftStructMetadata structMetadata)
public static <K,V> ThriftType map(ThriftType keyType, ThriftType valueType)
public static <E> ThriftType set(ThriftType valueType)
public static <E> ThriftType list(ThriftType valueType)
public static ThriftType array(ThriftType valueType)
public static ThriftType enumType(ThriftEnumMetadata<?> enumMetadata)
public java.lang.reflect.Type getJavaType()
public ThriftProtocolType getProtocolType()
public ThriftType getKeyType()
public ThriftType getValueType()
public ThriftStructMetadata getStructMetadata()
public ThriftEnumMetadata<?> getEnumMetadata()
public boolean isCoerced()
public ThriftType coerceTo(java.lang.reflect.Type javaType)
public ThriftType getUncoercedType()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2020. All Rights Reserved.