Files
rr3-apk/decompiled/sources/kotlin/io/LinesSequence$iterator$1.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

49 lines
1.4 KiB
Java

package kotlin.io;
import java.io.BufferedReader;
import java.util.Iterator;
import java.util.NoSuchElementException;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.markers.KMappedMarker;
/* loaded from: classes5.dex */
public final class LinesSequence$iterator$1 implements Iterator, KMappedMarker {
public boolean done;
public String nextValue;
public final /* synthetic */ LinesSequence this$0;
@Override // java.util.Iterator
public void remove() {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
public LinesSequence$iterator$1(LinesSequence linesSequence) {
this.this$0 = linesSequence;
}
@Override // java.util.Iterator
public boolean hasNext() {
BufferedReader bufferedReader;
if (this.nextValue == null && !this.done) {
bufferedReader = this.this$0.reader;
String readLine = bufferedReader.readLine();
this.nextValue = readLine;
if (readLine == null) {
this.done = true;
}
}
return this.nextValue != null;
}
@Override // java.util.Iterator
public String next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
String str = this.nextValue;
this.nextValue = null;
Intrinsics.checkNotNull(str);
return str;
}
}