public class PriorityLinkedList<E extends LinkedNode<E>> extends Object
| Constructor and Description |
|---|
PriorityLinkedList(int numPriorities) |
PriorityLinkedList(int numPriorities,
Mapper<Integer,E> priorityMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element) |
void |
add(E element,
int prio) |
int |
getHighestPriority() |
Mapper<Integer,E> |
getPriorityMapper() |
boolean |
isEmpty() |
E |
peek()
Gets the element at the front of the list:
|
E |
poll()
Gets the element at the front of the list:
|
void |
setPriorityMapper(Mapper<Integer,E> priorityMapper) |
public final int getHighestPriority()
public final E poll()
public final boolean isEmpty()
public final E peek()
public final void add(E element)
public final void add(E element, int prio)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.