-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataSet.java~
More file actions
37 lines (20 loc) · 884 Bytes
/
Copy pathDataSet.java~
File metadata and controls
37 lines (20 loc) · 884 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
import java.util.ArrayList;
import java.util.*;
public class DataSet{
public DataSet(String[] fieldNames, ArrayList<String[]> data)
{
//Debug code -- prints in the passed in column headers and first row of Data
//Comment out or remove this in your final code!
System.out.println(Arrays.toString(fieldNames));
System.out.println(Arrays.toString(data.get(0)));
}
public ArrayList<String[]> applyFilters(ArrayList<Filter> filters){
//Prints the filters -- here for debugging, c
//Comment out or remove this in your final code!
for (int i = 0; i < filters.size(); i++)
System.out.println("Filter #" + (i+1) + ": " + filters.get(i));
return null; //placeholder
}
//You should implement a nested Comparator class inside your DataSet
//ex: class DataSetComparator implements....
}