01: package de.regnis.q.sequence.line;
02:
03: import java.io.*;
04: import java.util.*;
05:
06: /**
07: * @author Marc Strapetz
08: */
09: public final class QSequenceLineResult {
10:
11: // Fields =================================================================
12:
13: private final List blocks;
14: private final QSequenceLineCache leftCache;
15: private final QSequenceLineCache rightCache;
16:
17: // Setup ==================================================================
18:
19: public QSequenceLineResult(List blocks,
20: QSequenceLineCache leftCache, QSequenceLineCache rightCache) {
21: this .blocks = blocks;
22: this .leftCache = leftCache;
23: this .rightCache = rightCache;
24: }
25:
26: // Accessing ==============================================================
27:
28: public List getBlocks() {
29: return Collections.unmodifiableList(blocks);
30: }
31:
32: public QSequenceLineCache getLeftCache() {
33: return leftCache;
34: }
35:
36: public QSequenceLineCache getRightCache() {
37: return rightCache;
38: }
39:
40: public void close() throws IOException {
41: leftCache.close();
42: rightCache.close();
43: }
44: }
|