Defines a collection for priority queues, which can insert, peek and pop.
This interface is now replaced by the Buffer interface.
since: Commons Collections 1.0 version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: Peter Donald
insert(Object element) Insert an element into queue.
Parameters: element - the element to be inserted throws: ClassCastException - if the specified element'stype prevents it from being compared to other items in the queue todetermine its relative priority.
Insert an element into queue.
Parameters: element - the element to be inserted throws: ClassCastException - if the specified element'stype prevents it from being compared to other items in the queue todetermine its relative priority.