diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java | 55 |
1 files changed, 0 insertions, 55 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 deleted file mode 100644 index 5dc9bbb74e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui.branch/src/org/eclipse/emf/cdo/ui/internal/branch/layout/Deque.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * 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()) - { - return null; - } - - return getFirst(); - } - - /** - * Returns the last element if present, <tt>null</tt> otherwise. - * - * @return the e - */ - public E peekLast() - { - if (isEmpty()) - { - return null; - } - - return getLast(); - } -} |