Queue.peek

Retrieves, but does not remove, the head of this queue, or returns {@code null} if this queue is empty.

@return the head of this queue, or {@code null} if this queue is empty

interface Queue(E)
E
peek
()

Meta