Plates implements Iterable
package io.improbable.keanu.plating;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
-public class Plates {
+import org.jetbrains.annotations.NotNull;
+
+public class Plates implements Iterable<Plate> {
private List<Plate> containedPlates;
public Plates(int reservedSize) {
@@ -22,4 +25,9 @@ public class Plates {
return containedPlates;
}
+ @NotNull
+ @Override
+ public Iterator<Plate> iterator() {
+ return containedPlates.iterator();
+ }
}
