JAL-2446 FeatureStore with NCList - work in progress
[jalview.git] / src / jalview / datamodel / features / SubList.java
diff --git a/src/jalview/datamodel/features/SubList.java b/src/jalview/datamodel/features/SubList.java
new file mode 100644 (file)
index 0000000..ace0240
--- /dev/null
@@ -0,0 +1,27 @@
+package jalview.datamodel.features;
+
+/**
+ * SubList holds the start and end index of a run of intervals where each is
+ * contained by (or the same as) the one preceding it.
+ * <p>
+ * SubList is used during the construction of an NCList
+ */
+class SubList
+{
+  /*
+   * the index of the sublist's first interval in the 'intervals' list
+   */
+  int startIndex;
+
+  /*
+   * the index of the sublist's last interval in the 'intervals' list
+   */
+  int endIndex;
+
+  SubList(int from, int to)
+  {
+    startIndex = from;
+    endIndex = to;
+  }
+
+}
\ No newline at end of file