All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.estafet.microservices.scrum.lib.data.project.ProjectDataSetBuilder Maven / Gradle / Ivy

There is a newer version: 1.0.5-SNAPHOT
Show newest version
package com.estafet.microservices.scrum.lib.data.project;

import java.util.ArrayList;
import java.util.List;

public class ProjectDataSetBuilder {

	private List> data;
	
	public ProjectDataSetBuilder setData(List> data) {
		this.data = data;
		return this;
	}

	public List build() {
		List projects = new ArrayList();
		for (int i = 1; i < data.size(); i++) {
			List row = data.get(i);
			Project project = new ProjectBuilder()
							.setTitle(row.get(0))
							.setNoSprints(Integer.parseInt(row.get(1)))
							.setSprintLengthDays(Integer.parseInt(row.get(2)))
							.build();
			projects.add(project);
		}
		return projects;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy