question: CompoundInterval copy ( Register r , BasicInterval stop ) { CompoundInterval result = new CompoundInterval ( r ) ; for ( Iterator < BasicInterval > i = iterator ( ) ; i . hasNext ( ) ; ) { BasicInterval b = i . next ( ) ; result . add ( b ) ; if ( b . sameRange ( stop ) ) return result ; } return result ; }
target:  Copies the basic intervals up to and including stop into a new interval. The new interval is associated with the given register.