pollFirst method

E? pollFirst()

Removes and returns the first element.

Implementation

E? pollFirst() {
  return poll();
}