I’m looking for a Deque which has the following characteristics:
- it has fixed size
- if I add elements at the head/tail elements at the opposite end drop out
- it is array-based so I can access random elements in constant time
- I can add elements at the front or at the end (deque)
I checked the Deque implementations in the JCF but I did not find anything that fits.
Because I love writing my own data types,