J
Jerry
I am using BoundedFifoBuffer from Apache Collection to enqueue and
dequeue Minute object (I defined this object). I find there is no
contructor in BoundedFifoBuffer that I can pass a Comparator object.
If I don't pass a Comparator object, "contains" method in
BoundedFifoBuffer won't work. It doesn't know if a Minute object is in
the queue.
Anyone knows how to solve this problem?
Thanks a lot!
dequeue Minute object (I defined this object). I find there is no
contructor in BoundedFifoBuffer that I can pass a Comparator object.
If I don't pass a Comparator object, "contains" method in
BoundedFifoBuffer won't work. It doesn't know if a Minute object is in
the queue.
Anyone knows how to solve this problem?
Thanks a lot!