package mssql.googlecode.concurrentlinkedhashmap;

import java.util.Deque;

An element that is linked on the Deque.
/** * An element that is linked on the {@link Deque}. */
interface Linked<T extends Linked<T>> {
Retrieves the previous element or null if either the element is unlinked or the first element on the deque.
/** * Retrieves the previous element or <tt>null</tt> if either the element is * unlinked or the first element on the deque. */
T getPrevious();
Sets the previous element or null if there is no link.
/** Sets the previous element or <tt>null</tt> if there is no link. */
void setPrevious(T prev);
Retrieves the next element or null if either the element is unlinked or the last element on the deque.
/** * Retrieves the next element or <tt>null</tt> if either the element is * unlinked or the last element on the deque. */
T getNext();
Sets the next element or null if there is no link.
/** Sets the next element or <tt>null</tt> if there is no link. */
void setNext(T next); }