@@ -0,0 +1,1323 @@
+/**%0A * Copyright (c) 2014 %22Ortask%22%0A * Mutator %5Bhttp://ortask.com/mutator%5D%0A *%0A * This file is part of Mutator.%0A *%0A * Mutator is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as%0A * published by the Free Software Foundation, either version 3 of the%0A * License, or (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Aimport java.util.Iterator;%0A%0A%0Apublic class RectangleIterator implements Iterator %0A%7B%0A%09Rectangle root, current;%0A%0A%09%0A%09public RectangleIterator (Rectangle r)%0A%09%7B%0A%09%09this.root = r;%0A%09%09current = root;%0A%09%7D%0A%0A%09%0A%09public boolean hasNext() %0A%09%7B%0A%09%09// base case: current rectangle is a singleton%0A%09%09if( current.rectangleType == Rectangle.RectangleType.SINGLETON )%0A%09%09%7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09return true;%0A%09%7D%0A%0A%09%0A%09%0A%09public Rectangle next() %0A%09%7B%0A%09%09return null;%0A%09%7D%0A%0A%09%0A%09%0A%09public void remove() %0A%09%7B%0A%09%09throw new UnsupportedOperationException(%22This is not implemented.%22);%0A%09%7D%0A%0A%7D%0A

Create RectangleIterator.java