|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.messaging.core.list.impl.PriorityLinkedListImpl<T>
public class PriorityLinkedListImpl<T>
A priority linked list implementation It implements this by maintaining an individual LinkedList for each priority level.
| Constructor Summary | |
|---|---|
PriorityLinkedListImpl(int priorities)
|
|
| Method Summary | |
|---|---|
void |
addFirst(T t,
int priority)
|
void |
addLast(T t,
int priority)
|
void |
clear()
|
java.util.List<T> |
getAll()
|
boolean |
isEmpty()
|
java.util.ListIterator<T> |
iterator()
|
T |
peekFirst()
|
void |
remove(T messageReference,
int priority)
|
T |
removeFirst()
|
T |
removeLast()
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PriorityLinkedListImpl(int priorities)
| Method Detail |
|---|
public void addFirst(T t,
int priority)
addFirst in interface PriorityLinkedList<T>
public void addLast(T t,
int priority)
addLast in interface PriorityLinkedList<T>public T removeFirst()
removeFirst in interface PriorityLinkedList<T>public T removeLast()
removeLast in interface PriorityLinkedList<T>public T peekFirst()
peekFirst in interface PriorityLinkedList<T>public java.util.List<T> getAll()
getAll in interface PriorityLinkedList<T>public void clear()
clear in interface PriorityLinkedList<T>public int size()
size in interface PriorityLinkedList<T>public boolean isEmpty()
isEmpty in interface PriorityLinkedList<T>
public void remove(T messageReference,
int priority)
remove in interface PriorityLinkedList<T>public java.util.ListIterator<T> iterator()
iterator in interface PriorityLinkedList<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||