예제 #1
0
 public SequenceSet deepCopy(SequenceSet value) {
   SequenceSet rc = new SequenceSet();
   Sequence sequence = value.getHead();
   while (sequence != null) {
     rc.add(new Sequence(sequence.first, sequence.last));
     sequence = sequence.getNext();
   }
   return rc;
 }
예제 #2
0
 public void add(Sequence value) {
   // TODO we can probably optimize this a bit
   for (long i = value.first; i < value.last + 1; i++) {
     add(i);
   }
 }