private void addToSetIfNotPrimitiveOrCollection ( Set < String > schemaNameSet , String ... schemaNames ) { for ( String schemaName : schemaNames ) { // collections schemas get brought in by a star import if ( ! HollowCodeGenerationUtils . isCollectionType ( schemaName , dataset ) && ! HollowCodeGenerationUtils . isPrimitiveType ( schemaName ) ) { schemaNameSet . add ( schemaName ) ; } } }
Adds the schema name to the set if the schema name doesn t correspond to a Hollow primitive type . Factored out to prevent bloat in the switch statement it is called from .