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

41 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.util.concurrent;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
/* loaded from: classes2.dex */
abstract class ForwardingLock implements Lock {
abstract Lock delegate();
@Override // java.util.concurrent.locks.Lock
public void lock() {
delegate().lock();
}
@Override // java.util.concurrent.locks.Lock
public void lockInterruptibly() throws InterruptedException {
delegate().lockInterruptibly();
}
@Override // java.util.concurrent.locks.Lock
public boolean tryLock() {
return delegate().tryLock();
}
@Override // java.util.concurrent.locks.Lock
public boolean tryLock(long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().tryLock(j, timeUnit);
}
@Override // java.util.concurrent.locks.Lock
public void unlock() {
delegate().unlock();
}
@Override // java.util.concurrent.locks.Lock
public Condition newCondition() {
return delegate().newCondition();
}
}