org.tinygroup.queue
Interface PriorityQueue<E>

All Superinterfaces:
Queue<E>, QueueMonitor
All Known Implementing Classes:
PriorityQueueImpl

public interface PriorityQueue<E>
extends Queue<E>

优先队列. User: luoguo Date: 11-3-30 Time: 下午9:22 To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from interface org.tinygroup.queue.Queue
DEFAULT_QUEUE_SIZE
 
Method Summary
 void offer(E e, int priority)
          添加元素到队列中.
 void setPriorityIncreaseStrategy(PriorityIncreaseStrategy<E> strategy)
           
 
Methods inherited from interface org.tinygroup.queue.Queue
element, isEmpty, isFull, offer, peek, poll, remove, size
 
Methods inherited from interface org.tinygroup.queue.QueueMonitor
getIdleSize, getName, getSize, getUsingSize
 

Method Detail

offer

void offer(E e,
           int priority)
添加元素到队列中.

Parameters:
e - 要增加的元素
priority - 要增加的元素的优先级

setPriorityIncreaseStrategy

void setPriorityIncreaseStrategy(PriorityIncreaseStrategy<E> strategy)


Copyright © 2006–2015 TinyGroup. All rights reserved.