/** * Constructs a composite type. Schemas must include those from the super type. */ public CompositeTypeImpl(CompositeType superType, String schema, String name, List<Schema> schemaList) { super(superType, schema, name); if (schemaList == null) { schemaList = Collections.emptyList(); } for (Schema s : schemaList) { schemas.put(s.getName(), s); for (Field field : s.getFields()) { addField(field); } } }