lttng: Javadoc udpate for the lttng2.kernel.ui package
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.ui / src / org / eclipse / linuxtools / internal / lttng2 / kernel / ui / views / common / EventIterator.java
index 18a8a9e78d448fa4352a11376084ed686bd0cae1..d1acc54c55cb3483b56770af624bd0833f34cde9 100644 (file)
@@ -1,11 +1,11 @@
 /*******************************************************************************\r
  * Copyright (c) 2012 Ericsson\r
- * \r
+ *\r
  * All rights reserved. This program and the accompanying materials are\r
  * made available under the terms of the Eclipse Public License v1.0 which\r
  * accompanies this distribution, and is available at\r
  * http://www.eclipse.org/legal/epl-v10.html\r
- * \r
+ *\r
  * Contributors:\r
  *   Patrick Tasse - Initial API and implementation\r
  *******************************************************************************/\r
@@ -19,10 +19,13 @@ import java.util.NoSuchElementException;
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;\r
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeEvent;\r
 \r
+/**\r
+ * An iterator for time events\r
+ */\r
 public class EventIterator implements Iterator<ITimeEvent> {\r
 \r
-    private long fStartTime;\r
-    private long fEndTime;\r
+    private final long fStartTime;\r
+    private final long fEndTime;\r
     private List<ITimeEvent> fEventList;\r
     private List<ITimeEvent> fZoomedEventList;\r
     private long fZoomedStartTime;\r
@@ -32,11 +35,33 @@ public class EventIterator implements Iterator<ITimeEvent> {
     private ITimeEvent fNext = null;\r
     private ITimeEvent fZoomedNext = null;\r
 \r
+    /**\r
+     * Basic constructor, with start time and end times equal to the lowest and\r
+     * highest values possible, respectively.\r
+     *\r
+     * @param eventList\r
+     *            The list on which this iterator will iterate\r
+     * @param zoomedEventList\r
+     *            The "zoomed" list\r
+     */\r
     public EventIterator(List<ITimeEvent> eventList, List<ITimeEvent> zoomedEventList) {\r
         this(eventList, zoomedEventList, Long.MIN_VALUE, Long.MAX_VALUE);\r
     }\r
 \r
-    public EventIterator(List<ITimeEvent> eventList, List<ITimeEvent> zoomedEventList, long startTime, long endTime) {\r
+    /**\r
+     * Complete constructor, where we specify start and end times.\r
+     *\r
+     * @param eventList\r
+     *            The list on which this iterator will iterate\r
+     * @param zoomedEventList\r
+     *            The "zoomed" list\r
+     * @param startTime\r
+     *            The start time\r
+     * @param endTime\r
+     *            The end time\r
+     */\r
+    public EventIterator(List<ITimeEvent> eventList,\r
+            List<ITimeEvent> zoomedEventList, long startTime, long endTime) {\r
         fEventList = eventList;\r
         fZoomedEventList = zoomedEventList;\r
         if (zoomedEventList != null && zoomedEventList.size() > 0) {\r
This page took 0.028608 seconds and 5 git commands to generate.