package io.sentry; import java.util.Queue; /* loaded from: classes3.dex */ final class SynchronizedQueue extends SynchronizedCollection implements Queue { private static final long serialVersionUID = 1; /* JADX INFO: Access modifiers changed from: package-private */ public static SynchronizedQueue synchronizedQueue(Queue queue) { return new SynchronizedQueue<>(queue); } private SynchronizedQueue(Queue queue) { super(queue); } protected SynchronizedQueue(Queue queue, Object obj) { super(queue, obj); } /* JADX INFO: Access modifiers changed from: protected */ @Override // io.sentry.SynchronizedCollection public Queue decorated() { return (Queue) super.decorated(); } @Override // java.util.Queue public E element() { E element; synchronized (this.lock) { element = decorated().element(); } return element; } @Override // io.sentry.SynchronizedCollection, java.util.Collection public boolean equals(Object obj) { boolean equals; if (obj == this) { return true; } synchronized (this.lock) { equals = decorated().equals(obj); } return equals; } @Override // io.sentry.SynchronizedCollection, java.util.Collection public int hashCode() { int hashCode; synchronized (this.lock) { hashCode = decorated().hashCode(); } return hashCode; } @Override // java.util.Queue public boolean offer(E e) { boolean offer; synchronized (this.lock) { offer = decorated().offer(e); } return offer; } @Override // java.util.Queue public E peek() { E peek; synchronized (this.lock) { peek = decorated().peek(); } return peek; } @Override // java.util.Queue public E poll() { E poll; synchronized (this.lock) { poll = decorated().poll(); } return poll; } @Override // java.util.Queue public E remove() { E remove; synchronized (this.lock) { remove = decorated().remove(); } return remove; } @Override // io.sentry.SynchronizedCollection, java.util.Collection public Object[] toArray() { Object[] array; synchronized (this.lock) { array = decorated().toArray(); } return array; } @Override // io.sentry.SynchronizedCollection, java.util.Collection public T[] toArray(T[] tArr) { T[] tArr2; synchronized (this.lock) { tArr2 = (T[]) decorated().toArray(tArr); } return tArr2; } }