public class TypeTransformer extends BaseTypeTransformer
Modifier and Type | Class and Description |
---|---|
class |
TypeTransformer.ThriftClientTypeTransformer<L,M extends ThriftDecorator<L>,R>
原始类型和thrift client 类型之间的转换器,需要2将完成转换,如果
L->M->R |
transTable
Modifier | Constructor and Description |
---|---|
protected |
TypeTransformer() |
Modifier and Type | Method and Description |
---|---|
static TypeTransformer |
getInstance() |
<L,R> com.google.common.base.Function<L,R> |
getTransformer(java.lang.Class<L> left,
java.lang.Class<R> right)
返回
left TO right 指定的转换器,参数不可为null |
static void |
setInstance(TypeTransformer instance) |
cast, getBytesInBuffer, getTransformerChecked, setTransformer, to, to, to, to, to, to, to, to, to, to, to, toArray, tobooleanArray, todoubleArray, tofloatArray, tointArray, tolongArray, toshortArray
protected TypeTransformer()
public static TypeTransformer getInstance()
public static void setInstance(TypeTransformer instance)
public <L,R> com.google.common.base.Function<L,R> getTransformer(java.lang.Class<L> left, java.lang.Class<R> right)
BaseTypeTransformer
left TO right
指定的转换器,参数不可为null
getTransformer
in class BaseTypeTransformer
Copyright © 2019. All rights reserved.