@Test public void testStructWithIdlAnnotationsMap() throws Exception { ThriftStructMetadata metadata = testStructMetadataBuild(StructWithIdlAnnotations.class, 0, 0); Map<String, String> idlAnnotations = metadata.getIdlAnnotations(); assertEquals(idlAnnotations.size(), 2); assertEquals(idlAnnotations.get("testkey1"), "testvalue1"); assertEquals(idlAnnotations.get("testkey2"), "testvalue2"); }
public Map<String, String> getIdlAnnotations() { return idlAnnotations; }
ThriftStructMetadata { public Map<String, String> getIdlAnnotations() { return idlAnnotations; } }
ThriftStructMetadata { public Map<String, String> getIdlAnnotations() { return idlAnnotations; } ThriftStructMetadata(
            String structName,
            Map<String, String> idlAnnotations,
            Type structType,
            Type builderType,
            MetadataType metadataType,
            Optional<ThriftMethodInjection> builderMethod,
            List<String> documentation,
            List<ThriftFieldMetadata> fields,
            Optional<ThriftConstructorInjection> constructorInjection,
            List<ThriftMethodInjection> methodInjections); }
ThriftStructMetadata { public Map<String, String> getIdlAnnotations() { return idlAnnotations; } ThriftStructMetadata(
            String structName,
            Map<String, String> idlAnnotations,
            Type structType,
            Type builderType,
            MetadataType metadataType,
            Optional<ThriftMethodInjection> builderMethod,
            List<String> documentation,
            List<ThriftFieldMetadata> fields,
            Optional<ThriftConstructorInjection> constructorInjection,
            List<ThriftMethodInjection> methodInjections); String getStructName(); Type getStructType(); Class<?> getStructClass(); Type getBuilderType(); Class<?> getBuilderClass(); MetadataType getMetadataType(); Optional<ThriftMethodInjection> getBuilderMethod(); Map<String, String> getIdlAnnotations(); ThriftFieldMetadata getField(int id); ImmutableList<String> getDocumentation(); Collection<ThriftFieldMetadata> getFields(FieldKind type); Collection<ThriftFieldMetadata> getFields(); Optional<ThriftConstructorInjection> getConstructorInjection(); List<ThriftMethodInjection> getMethodInjections(); boolean isException(); boolean isUnion(); boolean isStruct(); @Override String toString(); }
ThriftStructMetadata { public Map<String, String> getIdlAnnotations() { return idlAnnotations; } ThriftStructMetadata(
            String structName,
            Map<String, String> idlAnnotations,
            Type structType,
            Type builderType,
            MetadataType metadataType,
            Optional<ThriftMethodInjection> builderMethod,
            List<String> documentation,
            List<ThriftFieldMetadata> fields,
            Optional<ThriftConstructorInjection> constructorInjection,
            List<ThriftMethodInjection> methodInjections); String getStructName(); Type getStructType(); Class<?> getStructClass(); Type getBuilderType(); Class<?> getBuilderClass(); MetadataType getMetadataType(); Optional<ThriftMethodInjection> getBuilderMethod(); Map<String, String> getIdlAnnotations(); ThriftFieldMetadata getField(int id); ImmutableList<String> getDocumentation(); Collection<ThriftFieldMetadata> getFields(FieldKind type); Collection<ThriftFieldMetadata> getFields(); Optional<ThriftConstructorInjection> getConstructorInjection(); List<ThriftMethodInjection> getMethodInjections(); boolean isException(); boolean isUnion(); boolean isStruct(); @Override String toString();  }