Examples of TypeCoercion


Examples of com.facebook.swift.codec.metadata.TypeCoercion

                        return new EnumThriftCodec<>(type);
                    }
                    default:
                        if (type.isCoerced()) {
                            ThriftCodec<?> codec = getCodec(type.getUncoercedType());
                            TypeCoercion coercion = catalog.getDefaultCoercion(type.getJavaType());
                            return new CoercionThriftCodec<>(codec, coercion);
                        }
                        throw new IllegalArgumentException("Unsupported Thrift type " + type);
                }
            }
View Full Code Here

Examples of com.facebook.swift.codec.metadata.TypeCoercion

                        return new EnumThriftCodec<>(type);
                    }
                    default:
                        if (type.isCoerced()) {
                            ThriftCodec<?> codec = getCodec(type.getUncoercedType());
                            TypeCoercion coercion = catalog.getDefaultCoercion(type.getJavaType());
                            return new CoercionThriftCodec<>(codec, coercion);
                        }
                        throw new IllegalArgumentException("Unsupported Thrift type " + type);
                }
            }
View Full Code Here

Examples of com.facebook.swift.codec.metadata.TypeCoercion

                        return new EnumThriftCodec<>(type);
                    }
                    default:
                        if (type.isCoerced()) {
                            ThriftCodec<?> codec = getCodec(type.getUncoercedType());
                            TypeCoercion coercion = catalog.getDefaultCoercion(type.getJavaType());
                            return new CoercionThriftCodec<>(codec, coercion);
                        }
                        throw new IllegalArgumentException("Unsupported Thrift type " + type);
                }
            }
View Full Code Here

Examples of com.facebook.swift.codec.metadata.TypeCoercion

                        return new EnumThriftCodec<>(type);
                    }
                    default:
                        if (type.isCoerced()) {
                            ThriftCodec<?> codec = getCodec(type.getUncoercedType());
                            TypeCoercion coercion = catalog.getDefaultCoercion(type.getJavaType());
                            return new CoercionThriftCodec<>(codec, coercion);
                        }
                        throw new IllegalArgumentException("Unsupported Thrift type " + type);
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.