Polevoy S.V Lab_work4 #4

Closed
ChipsEater wants to merge 9 commits from LabWork04 into LabWork03
Showing only changes of commit 9c4f1d4327 - Show all commits

View File

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