public static List<AtlasTypeDefHeader> toTypeDefHeader(AtlasTypesDef typesDef) { List<AtlasTypeDefHeader> headerList = new LinkedList<>(); if (CollectionUtils.isNotEmpty(typesDef.getEnumDefs())) { for (AtlasEnumDef enumDef : typesDef.getEnumDefs()) { headerList.add(new AtlasTypeDefHeader(enumDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getStructDefs())) { for (AtlasStructDef structDef : typesDef.getStructDefs()) { headerList.add(new AtlasTypeDefHeader(structDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getClassificationDefs())) { for (AtlasClassificationDef classificationDef : typesDef.getClassificationDefs()) { headerList.add(new AtlasTypeDefHeader(classificationDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getEntityDefs())) { for (AtlasEntityDef entityDef : typesDef.getEntityDefs()) { headerList.add(new AtlasTypeDefHeader(entityDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getRelationshipDefs())) { for (AtlasRelationshipDef relationshipDef : typesDef.getRelationshipDefs()) { headerList.add(new AtlasTypeDefHeader(relationshipDef)); } } return headerList; }
public static List<AtlasTypeDefHeader> toTypeDefHeader(AtlasTypesDef typesDef) { List<AtlasTypeDefHeader> headerList = new LinkedList<>(); if (CollectionUtils.isNotEmpty(typesDef.getEnumDefs())) { for (AtlasEnumDef enumDef : typesDef.getEnumDefs()) { headerList.add(new AtlasTypeDefHeader(enumDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getStructDefs())) { for (AtlasStructDef structDef : typesDef.getStructDefs()) { headerList.add(new AtlasTypeDefHeader(structDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getClassificationDefs())) { for (AtlasClassificationDef classificationDef : typesDef.getClassificationDefs()) { headerList.add(new AtlasTypeDefHeader(classificationDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getEntityDefs())) { for (AtlasEntityDef entityDef : typesDef.getEntityDefs()) { headerList.add(new AtlasTypeDefHeader(entityDef)); } } if (CollectionUtils.isNotEmpty(typesDef.getRelationshipDefs())) { for (AtlasRelationshipDef relationshipDef : typesDef.getRelationshipDefs()) { headerList.add(new AtlasTypeDefHeader(relationshipDef)); } } return headerList; }