what-the-bank/sources/io/grpc/internal/FixedObjectPool.java

23 lines
540 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.grpc.internal;
import com.google.common.base.Preconditions;
/* loaded from: classes6.dex */
public final class FixedObjectPool<T> implements ObjectPool<T> {
private final T object;
@Override // io.grpc.internal.ObjectPool
public final T returnObject(Object obj) {
return null;
}
public FixedObjectPool(T t) {
this.object = (T) Preconditions.checkNotNull(t, "object");
}
@Override // io.grpc.internal.ObjectPool
public final T getObject() {
return this.object;
}
}