package o; import java.util.Iterator; import java.util.NoSuchElementException; /* loaded from: classes.dex */ public abstract class GGK implements Iterator { public abstract T a(); @Override // java.util.Iterator public void remove() { throw new UnsupportedOperationException("remove not supported"); } @Override // java.util.Iterator public final T next() { if (!hasNext()) { throw new NoSuchElementException(); } return a(); } }