Package com.linkedin.restli.common.test

Examples of com.linkedin.restli.common.test.SimpleEnum


        new KeyValueRecordFactory<SimpleEnum, RecordTemplateWithPrimitiveKey>(SimpleEnum.class,
                                                                         null,
                                                                         null,
                                                                         null,
                                                                         RecordTemplateWithPrimitiveKey.class);
    SimpleEnum id = SimpleEnum.A;
    RecordTemplateWithPrimitiveKey mockRecordTemplate = new RecordTemplateWithPrimitiveKey();
    mockRecordTemplate.setId(1L).setBody("foo");

    KeyValueRecord<SimpleEnum, RecordTemplateWithPrimitiveKey> keyValueRecord = factory.create(id, mockRecordTemplate);
View Full Code Here


    CompoundKey compoundKey = new CompoundKey();

    Long longKey = 1L;
    compoundKey.append("longKey", longKey);

    SimpleEnum simpleEnum = SimpleEnum.A;
    compoundKey.append("enumKey", simpleEnum);

    Map<String, CompoundKey.TypeInfo> fieldTypes = new HashMap<String, CompoundKey.TypeInfo>();
    fieldTypes.put("longKey", new CompoundKey.TypeInfo(Long.class, Long.class));
    fieldTypes.put("enumKey", new CompoundKey.TypeInfo(SimpleEnum.class, String.class));
View Full Code Here

TOP

Related Classes of com.linkedin.restli.common.test.SimpleEnum

Copyright © 2018 www.massapicom. 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.