01: package de.regnis.q.sequence;
02:
03: import java.util.*;
04:
05: /**
06: * @author Marc Strapetz
07: */
08: public class QSequenceDifferenceBlockUtils {
09:
10: // Accessing ==============================================================
11:
12: public static List createCopy(List blocks) {
13: final List copy = new ArrayList();
14: for (Iterator it = blocks.iterator(); it.hasNext();) {
15: final QSequenceDifferenceBlock block = (QSequenceDifferenceBlock) it
16: .next();
17: copy.add(createCopy(block));
18: }
19: return copy;
20: }
21:
22: public static QSequenceDifferenceBlock createCopy(
23: QSequenceDifferenceBlock block) {
24: return new QSequenceDifferenceBlock(block.getLeftFrom(), block
25: .getLeftTo(), block.getRightFrom(), block.getRightTo());
26: }
27: }
|