- 所有超级接口:
Collection<T>,IndexedCollection<T>,Iterable<T>,Queue<T>
- 所有已知实现类:
DefaultIndexedPriorityQueue
public interface IndexedPriorityQueue<T extends IndexedElement>
extends Queue<T>, IndexedCollection<T>
参考自netty的实现
由于
Collection中的API是基于Object的,不利于查询性能,添加了一些限定类型的方法。- 作者:
- wjybxx date 2023/4/3
-
方法概要
修饰符和类型方法说明booleancontainsTyped(T node) voidpriorityChanged(T node) 队列中节点元素的优先级发生变化时,将通过该方法通知队列调整booleanremoveTyped(T node) 从接口继承的方法 java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray从接口继承的方法 cn.wjybxx.base.collection.IndexedCollection
clearIgnoringIndexes
-
方法详细资料
-
removeTyped
-
containsTyped
-
priorityChanged
队列中节点元素的优先级发生变化时,将通过该方法通知队列调整- 参数:
node- 发生优先级变更的节点
-