public class DoubleLinkedList
extends java.lang.Object
Constructor and Description |
---|
DoubleLinkedList()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFirst(DoubleLinkedListNode me)
Adds a new node to the start of the link list.
|
void |
addLast(DoubleLinkedListNode me)
Adds a new node to the end of the link list.
|
void |
debugDumpEntries()
Dump the cache entries from first to list for debugging.
|
DoubleLinkedListNode |
getFirst()
Removes the specified node from the link list.
|
DoubleLinkedListNode |
getLast()
Returns the last node from the link list, if there are any nodes.
|
void |
makeFirst(DoubleLinkedListNode ln)
Moves an existing node to the start of the link list.
|
void |
makeLast(DoubleLinkedListNode ln)
Moves an existing node to the end of the link list.
|
boolean |
remove(DoubleLinkedListNode me)
Removes the specified node from the link list.
|
void |
removeAll()
Remove all of the elements from the linked list implementation.
|
DoubleLinkedListNode |
removeLast()
Removes the specified node from the link list.
|
int |
size()
Returns the size of the list.
|
public void addLast(DoubleLinkedListNode me)
me
- The feature to be added to the Lastpublic void addFirst(DoubleLinkedListNode me)
me
- The feature to be added to the Firstpublic DoubleLinkedListNode getLast()
public DoubleLinkedListNode getFirst()
public void makeFirst(DoubleLinkedListNode ln)
ln
- The node to set as the head.public void makeLast(DoubleLinkedListNode ln)
ln
- The node to set as the head.public void removeAll()
public boolean remove(DoubleLinkedListNode me)
me
- Description of the Parameterpublic DoubleLinkedListNode removeLast()
public int size()
public void debugDumpEntries()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.