title: Is there a Guava equivalent to Apache Commons CircularFifoBuffer?
body: <p>I need a data structure that can efficiently buffer a specific number of elements, in FIFO order.</p>
  
  <p>As mentioned in <a href="https://stackoverflow.com/questions/5498865/size-limited-queue-that-holds-last-n-elements-in-java">this question</a>, Apache Commons has a CircularFifoBuffer, but it is sadly not generified. <a href="https://github.com/megamattron/collections-generic" rel="nofollow noreferrer">Some</a> <a href="http://wiki.apache.org/commons/Collections/GenericCollections" rel="nofollow noreferrer">forks</a> exist, but I'm not sure of their maintenance status.</p>
  
  <p>Since Guava is the go-to library for my collection needs, I'm wondering: is there a good alternative in Guava? If not, should I implement it in my project, based on Apache Commons' CircularFifoBuffer?</p>