public class PriorityLinkedListImpl<T> extends Object implements PriorityLinkedList<T>
| Modifier and Type | Field and Description |
|---|---|
protected LinkedListImpl<T>[] |
levels |
protected int |
priorities |
| Constructor and Description |
|---|
PriorityLinkedListImpl(int priorities) |
protected LinkedListImpl<T>[] levels
protected final int priorities
public void addHead(T t, int priority)
addHead in interface PriorityLinkedList<T>public void addTail(T t, int priority)
addTail in interface PriorityLinkedList<T>public T poll()
poll 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 LinkedListIterator<T> iterator()
iterator in interface PriorityLinkedList<T>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.