Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 java 项目中使用 trove 3.0.3 库。gnu.trove.queue (TByteQueue, TDoubleQueue ...) 中的所有类都是接口。我在哪里可以找到队列类的实现?
您可以使用 TDoubleLinkedList 模拟简单的双重队列。它可以在 O(1) 时间内插入尾部和头部。
Trove 中还没有实现队列。