First stage: Fixed SetArtilleriesGeneric
This commit is contained in:
parent
8fc2d24e7e
commit
9c4f1d4327
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user