There isn’t a class that extends List for which you can set a limit on its size and that it behaves like a Queue object if you add an item beyond its fixed size.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.