Python Queue Peek Method In Java