A lot of things.
- Change tests directory location. - Fix Merlu CSV UTF8 encoding. - Make classes for ParasitesPeru2021.csv Parsing.
This commit is contained in:
50
src/ecoparasite/population/Population.java
Normal file
50
src/ecoparasite/population/Population.java
Normal file
@@ -0,0 +1,50 @@
|
||||
package ecoparasite.population;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
||||
public class Population {
|
||||
|
||||
private String id;
|
||||
private PopulationArgs total;
|
||||
private HashMap<Integer,PopulationArgs> perYear;
|
||||
|
||||
public Population(String id, PopulationArgs total, HashMap<Integer,PopulationArgs> perYear) {
|
||||
this.id = id;
|
||||
this.total = total;
|
||||
this.perYear = perYear;
|
||||
}
|
||||
|
||||
public Population(String id, PopulationArgs total) {
|
||||
this.id = id;
|
||||
this.total = total;
|
||||
this.perYear = new HashMap<>();
|
||||
}
|
||||
|
||||
public Population(String id) {
|
||||
this.id = id;
|
||||
this.total = null;
|
||||
this.perYear = new HashMap<>();
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public PopulationArgs getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public HashMap<Integer,PopulationArgs> getPerYear() {
|
||||
return perYear;
|
||||
}
|
||||
|
||||
public void setTotal(PopulationArgs total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public void setPerYear(HashMap<Integer,PopulationArgs> perYear) {
|
||||
this.perYear = perYear;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user