package com.google.common.collect; import com.google.common.base.Preconditions; import java.util.Queue; import javax.annotation.CheckForNull; @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ final class ConsumingQueueIterator extends AbstractIterator { private final Queue queue; /* JADX INFO: Access modifiers changed from: package-private */ public ConsumingQueueIterator(Queue queue) { this.queue = (Queue) Preconditions.checkNotNull(queue); } @Override // com.google.common.collect.AbstractIterator @CheckForNull public T computeNext() { if (this.queue.isEmpty()) { return endOfData(); } return this.queue.remove(); } }