Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Dietisheim2010-03-18 18:26:56 -0400
committerAndre Dietisheim2010-03-18 18:26:56 -0400
commitdc6127c0f5184773d23176b6d06b337ce0f304dc (patch)
tree39f86549a94dae56cf27e9f7e7995dca4ae8d567
parent899ced6a1b10dfcc1101dd770a4f82565fcd6766 (diff)
downloadcdo-dc6127c0f5184773d23176b6d06b337ce0f304dc.tar.gz
cdo-dc6127c0f5184773d23176b6d06b337ce0f304dc.tar.xz
cdo-dc6127c0f5184773d23176b6d06b337ce0f304dc.zip
[256624] [UI] Create a Commit History ViewPart
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256624
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java b/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java
index 65adc594bc..1dc93fa14b 100644
--- a/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java
+++ b/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java
@@ -7,18 +7,27 @@
*
* Contributors:
* Eike Stepper - initial API and implementation
+ * Andre Dietisheim - maintenance
*/
package org.eclipse.emf.cdo.ui.internal.branch.layout;
import java.util.LinkedList;
/**
+ * A double ended list, that returns <tt>null</tt> if no element is present. Mimics the jdk 1.6 Deque
+ *
* @author Eike Stepper
*/
public final class Deque<E> extends LinkedList<E>
{
+
private static final long serialVersionUID = 1L;
+ /**
+ * Returns the first element if present, <tt>null</tt> otherwise.
+ *
+ * @return the first element in this list.
+ */
public E peekFirst()
{
if (isEmpty())
@@ -29,6 +38,11 @@ public final class Deque<E> extends LinkedList<E>
return getFirst();
}
+ /**
+ * Returns the last element if present, <tt>null</tt> otherwise.
+ *
+ * @return the e
+ */
public E peekLast()
{
if (isEmpty())

Back to the top