(Quartiles q, String path)
| 2667 | private final static String LABEL_MAX = "max"; |
| 2668 | |
| 2669 | public void writeQuartilesToFile(Quartiles q, String path) throws IOException { |
| 2670 | FileWriter writer = new FileWriter(path, false); |
| 2671 | |
| 2672 | writer.write(LABEL_MIN + LABEL_SEPARATOR + q.min + "\n" + |
| 2673 | LABEL_Q1 + LABEL_SEPARATOR + q.q1 + "\n" + |
| 2674 | LABEL_MEDIAN + LABEL_SEPARATOR + q.median + "\n" + |
| 2675 | LABEL_Q3 + LABEL_SEPARATOR + q.q3 + "\n" + |
| 2676 | LABEL_MAX + LABEL_SEPARATOR + q.max + "\n" |
| 2677 | ); |
| 2678 | writer.close(); |
| 2679 | } |
| 2680 | |
| 2681 | public Quartiles restoreQuartilesFromFile(String path) throws IOException { |
| 2682 | Quartiles q = new Quartiles(); |
no test coverage detected