move transit to place
This commit is contained in:
@@ -70,4 +70,8 @@ public interface Place extends Connectable<Place> {
|
||||
vendor.clear();
|
||||
}
|
||||
}
|
||||
|
||||
default Vendor asTransit(){
|
||||
return new TransitVendor(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class VendorsIterator implements Iterator<Vendor> {
|
||||
nextVendor();
|
||||
} else {
|
||||
if (includeTransit)
|
||||
next = new TransitVendor(place);
|
||||
next = place.asTransit();
|
||||
else
|
||||
nextPlace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user