V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ju5t1nhhh
V2EX  ›  Java

为什么没有 ArrayBlockingDeque?

  •  
  •   ju5t1nhhh · Mar 18, 2018 · 3255 views
    This topic created in 2964 days ago, the information mentioned may be changed or developed.

    最近看 Java 集合源码时发现一个问题: 对于双端队列,既然有用循环实现的 ArrayDeque,那为什么在实现阻塞的时候没有 ArrayBlockingDeque 呢?而反而单端队列的 Queue,ArrayQueue 和 ArrayBlockingQueue 都实现好了呢。

    2 replies    2019-04-30 00:02:08 +08:00
    mightofcode
        2
    mightofcode  
       Apr 30, 2019
    这是个很好的问题,我觉得。。。可以有
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3786 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 10:31 · PVG 18:31 · LAX 03:31 · JFK 06:31
    ♥ Do have faith in what you're doing.