JAL-2778 try another way to draw sequences with reduced synchronisation
[jalview.git] / src / jalview / datamodel / Alignment.java
index 29e9dc8..baa8e83 100755 (executable)
@@ -36,6 +36,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.Vector;
+import java.util.function.Consumer;
 
 /**
  * Data structure to hold and manipulate a multiple sequence alignment
@@ -1912,4 +1913,11 @@ public class Alignment implements AlignmentI
   {
     hiddenCols = cols;
   }
+
+  @Override
+  public void forEachSequence(Consumer<SequenceI> c, int start, int end)
+  {
+    sequences.subList(start, end).forEach(c);
+  }
+
 }