@Immutable public class ThriftType extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
ThriftType(ThriftType uncoercedType,
java.lang.reflect.Type javaType) |
Modifier and Type | Method and Description |
---|---|
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
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019. All rights reserved.