circular buffer
CircularArrayList for Java
Java applications sometimes need a “sliding window” view on a stream/sequence of data. This can be provided by a List with fast element insertion and removal at opposite ends (like a queue) fast access to random elements in the list (like an array) Unfortunately, no existing implementation of the List interface in the Java Collections […]