-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSample.java
More file actions
47 lines (33 loc) · 909 Bytes
/
Copy pathSample.java
File metadata and controls
47 lines (33 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import java.util.ArrayList;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: jr207
* Date: 11/28/12
* Time: 4:47 PM
* To change this template use File | Settings | File Templates.
*/
public class Sample {
List<Integer> lineages;
List<Double> times;
List<Double> sampleBirths;
List<Double> sampleDeaths;
public Sample() {
lineages = new ArrayList<Integer>();
times = new ArrayList<Double>();
}
public void addSamples(List<Integer> lineages, List<Double> times) {
this.lineages.addAll(lineages);
this.times.addAll(times);
}
public void addSamples(Sample sample) {
this.lineages.addAll(sample.getLineages());
this.times.addAll(sample.getTimes());
}
public List<Integer> getLineages() {
return lineages;
}
public List<Double> getTimes() {
return times;
}
}