public interface PriorityQueue<E> extends Queue<E>
DEFAULT_QUEUE_SIZE
Modifier and Type | Method and Description |
---|---|
void |
offer(E e,
int priority)
添加元素到队列中.
|
void |
setPriorityIncreaseStrategy(PriorityIncreaseStrategy<E> strategy) |
element, isEmpty, isFull, offer, peek, poll, remove, size
getIdleSize, getName, getSize, getUsingSize
void offer(E e, int priority)
e
- 要增加的元素priority
- 要增加的元素的优先级void setPriorityIncreaseStrategy(PriorityIncreaseStrategy<E> strategy)
Copyright © 2006–2018 TinyGroup. All rights reserved.