@Immutable public class ThriftType extends Object
| Modifier and Type | Field and Description |
|---|---|
static ThriftType |
BINARY |
static ThriftTypeReference |
BINARY_REF |
static ThriftType |
BOOL |
static ThriftTypeReference |
BOOL_REF |
static ThriftType |
BYTE |
static ThriftTypeReference |
BYTE_REF |
static ThriftType |
DOUBLE |
static ThriftTypeReference |
DOUBLE_REF |
static ThriftType |
I16 |
static ThriftTypeReference |
I16_REF |
static ThriftType |
I32 |
static ThriftTypeReference |
I32_REF |
static ThriftType |
I64 |
static ThriftTypeReference |
I64_REF |
static ThriftType |
STRING |
static ThriftTypeReference |
STRING_REF |
static ThriftType |
VOID |
static ThriftTypeReference |
VOID_REF |
| Constructor and Description |
|---|
ThriftType(ThriftType uncoercedType,
Type javaType) |
ThriftType(ThriftType uncoercedType,
Type javaType,
Object nullValue) |
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 static final ThriftTypeReference BOOL_REF
public static final ThriftTypeReference BYTE_REF
public static final ThriftTypeReference DOUBLE_REF
public static final ThriftTypeReference I16_REF
public static final ThriftTypeReference I32_REF
public static final ThriftTypeReference I64_REF
public static final ThriftTypeReference STRING_REF
public static final ThriftTypeReference BINARY_REF
public static final ThriftTypeReference VOID_REF
public ThriftType(ThriftType uncoercedType, Type javaType)
public ThriftType(ThriftType uncoercedType, Type javaType, Object nullValue)
public static ThriftType struct(ThriftStructMetadata structMetadata)
public static <K,V> ThriftType map(ThriftType keyType, ThriftType valueType)
public static <K,V> ThriftType map(ThriftTypeReference keyTypeReference, ThriftTypeReference valueTypeReference)
public static <E> ThriftType set(ThriftType valueType)
public static <E> ThriftType set(ThriftTypeReference valueTypeReference)
public static <E> ThriftType list(ThriftType valueType)
public static <E> ThriftType list(ThriftTypeReference valueTypeReference)
public static ThriftType array(ThriftType valueType)
public static ThriftType array(ThriftTypeReference valueTypeReference)
public static ThriftType optional(ThriftType valueType)
public static <T> ThriftType optional(ThriftTypeReference valueTypeReference)
public static ThriftType enumType(ThriftEnumMetadata<?> enumMetadata)
public Type getJavaType()
public ThriftProtocolType getProtocolType()
public ThriftTypeReference getKeyTypeReference()
public ThriftTypeReference getValueTypeReference()
public ThriftStructMetadata getStructMetadata()
public ThriftEnumMetadata<?> getEnumMetadata()
public boolean isCoerced()
public Object getNullValue()
public ThriftType coerceTo(Type javaType)
public ThriftType getUncoercedType()
Copyright © 2012–2019. All rights reserved.