I\'m trying to make a queue which prioritize the first object in the queue that should max contain two objects. By doing this I\'m using java.util.Queue and everytime a key is p