25 lines
681 B
Java
25 lines
681 B
Java
|
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();
|
||
|
}
|
||
|
}
|