what-the-bank/sources/com/google/common/util/concurrent/ForwardingBlockingDeque.java

92 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.util.concurrent;
import com.google.common.collect.ForwardingDeque;
import java.util.Collection;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
public abstract class ForwardingBlockingDeque<E> extends ForwardingDeque<E> implements BlockingDeque<E> {
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.google.common.collect.ForwardingDeque, com.google.common.collect.ForwardingQueue, com.google.common.collect.ForwardingCollection, com.google.common.collect.ForwardingObject
public abstract BlockingDeque<E> delegate();
protected ForwardingBlockingDeque() {
}
@Override // java.util.concurrent.BlockingQueue
public int remainingCapacity() {
return delegate().remainingCapacity();
}
@Override // java.util.concurrent.BlockingDeque
public void putFirst(E e) throws InterruptedException {
delegate().putFirst(e);
}
@Override // java.util.concurrent.BlockingDeque
public void putLast(E e) throws InterruptedException {
delegate().putLast(e);
}
@Override // java.util.concurrent.BlockingDeque
public boolean offerFirst(E e, long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().offerFirst(e, j, timeUnit);
}
@Override // java.util.concurrent.BlockingDeque
public boolean offerLast(E e, long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().offerLast(e, j, timeUnit);
}
@Override // java.util.concurrent.BlockingDeque
public E takeFirst() throws InterruptedException {
return delegate().takeFirst();
}
@Override // java.util.concurrent.BlockingDeque
public E takeLast() throws InterruptedException {
return delegate().takeLast();
}
@Override // java.util.concurrent.BlockingDeque
public E pollFirst(long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().pollFirst(j, timeUnit);
}
@Override // java.util.concurrent.BlockingDeque
public E pollLast(long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().pollLast(j, timeUnit);
}
@Override // java.util.concurrent.BlockingDeque, java.util.concurrent.BlockingQueue
public void put(E e) throws InterruptedException {
delegate().put(e);
}
@Override // java.util.concurrent.BlockingDeque, java.util.concurrent.BlockingQueue
public boolean offer(E e, long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().offer(e, j, timeUnit);
}
@Override // java.util.concurrent.BlockingDeque, java.util.concurrent.BlockingQueue
public E take() throws InterruptedException {
return delegate().take();
}
@Override // java.util.concurrent.BlockingDeque, java.util.concurrent.BlockingQueue
public E poll(long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().poll(j, timeUnit);
}
@Override // java.util.concurrent.BlockingQueue
public int drainTo(Collection<? super E> collection) {
return delegate().drainTo(collection);
}
@Override // java.util.concurrent.BlockingQueue
public int drainTo(Collection<? super E> collection, int i) {
return delegate().drainTo(collection, i);
}
}