Just some code that demonstrates using custom generics to specify a
parameter type within a range of subclasses.
TestQueue demonstrates adding custom and out of the box objects that implement equals, hashCode and Comparable to a PriorityQueue. It also demonstrates the use of add, offer, peek, poll, contains and remove.