In apache common collections what is the difference between:
- CircularFifoBuffer
- BoundedFifoBuffer
Ok, the first deletes oldest Entries when full, the other deletes entries in the same order, as the came in. But isn’t it the same?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CircularFifoBufferextendsBoundedFifoBuffer. It only overrides single method –add:So the only difference is that
BoundedFifoBufferthrows exception when it’s full and you try to add new element whileCircularFifoBufferremoves oldest element.