First stage: Fixed SetArtilleriesGeneric

This commit is contained in:
Сергей Полевой 2022-11-05 16:26:26 +04:00
parent 8fc2d24e7e
commit 9c4f1d4327

View File

@ -50,7 +50,7 @@ public class SetArtilleriesGeneric<T> {
return _places.get(position); return _places.get(position);
} }
public Iterator<T> getArtilleries() { public Iterable<T> getArtilleries() {
return _places.stream().filter(Objects::nonNull).iterator(); return () -> _places.stream().filter(Objects::nonNull).iterator();
} }
} }