what-the-bank/sources/o/C14987gds.java

25 lines
681 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Iterator;
import java.util.concurrent.atomic.AtomicReference;
/* renamed from: o.gds, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C14987gds<T> implements gdE<T> {
private final AtomicReference<gdE<T>> d;
public C14987gds(gdE<? extends T> gde) {
C14957gcv.e(gde, "");
this.d = new AtomicReference<>(gde);
}
@Override // o.gdE
public final Iterator<T> e() {
gdE<T> andSet = this.d.getAndSet(null);
if (andSet == null) {
throw new IllegalStateException("This sequence can be consumed only once.");
}
return andSet.e();
}
}