开发者

Does java provide capped collection

开发者 https://www.devze.com 2023-02-23 14:45 出处:网络
For example, a capped list which automatically delete the first inserted items if 开发者_如何学编程the total items pass the specified amount? Any builtin or 3rd party support?Answered here in this Sta

For example, a capped list which automatically delete the first inserted items if 开发者_如何学编程the total items pass the specified amount? Any builtin or 3rd party support?


Answered here in this Stackoverflow question:

Is there a bounded non-blocking Collection in Java?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消