Does java provide a limited collection

For example, a restricted list that automatically deletes the first inserted items if the common items pass the specified amount? Any built-in support or third-party support?

+4
source share
2 answers

The answer to this question in Stackoverflow:

Is there a limited non-blocking collection in Java?

+1
source

It would be pretty trivial to implement this as a wrapper for any of the java queue collections.

+1
source

Source: https://habr.com/ru/post/1347656/


All Articles