}
}
+ public LoopFactory makeNext(int new_count) { return makeNext(new_count, null); }
+ public LoopFactory makeNext(int new_count, String newFriendlyName) {
+ if (next != null) throw new RuntimeException("loop already has a successor");
+ return new LoopFactory(dock, new_count, newFriendlyName, this);
+ }
public LoopFactory getNext() { return next; }
private void setNext(LoopFactory next) {
if (this.next != null) throw new RuntimeException("attempt to setNext() twice");