// 
// Decompiled by Procyon v0.6.0
// 

package it.unimi.dsi.fastutil.chars;

import it.unimi.dsi.fastutil.SafeMath;
import java.util.function.IntConsumer;
import java.util.function.Consumer;
import java.util.NoSuchElementException;
import java.io.Serializable;
import java.util.Objects;
import java.util.function.IntPredicate;
import java.util.ListIterator;
import it.unimi.dsi.fastutil.ints.IntIterators;
import it.unimi.dsi.fastutil.ints.IntIterator;
import java.util.PrimitiveIterator;
import java.util.Iterator;
import it.unimi.dsi.fastutil.BigArrays;

public final class CharIterators
{
    public static final EmptyIterator EMPTY_ITERATOR;
    
    private CharIterators() {
    }
    
    public static CharListIterator singleton(final char element) {
        return new SingletonIterator(element);
    }
    
    public static CharListIterator wrap(final char[] array, final int offset, final int length) {
        CharArrays.ensureOffsetLength(array, offset, length);
        return new ArrayIterator(array, offset, length);
    }
    
    public static CharListIterator wrap(final char[] array) {
        return new ArrayIterator(array, 0, array.length);
    }
    
    public static int unwrap(final CharIterator i, final char[] array, int offset, final int max) {
        if (max < 0) {
            throw new IllegalArgumentException("The maximum number of elements (" + max + ") is negative");
        }
        if (offset < 0 || offset + max > array.length) {
            throw new IllegalArgumentException();
        }
        int j = max;
        while (j-- != 0 && i.hasNext()) {
            array[offset++] = i.nextChar();
        }
        return max - j - 1;
    }
    
    public static int unwrap(final CharIterator i, final char[] array) {
        return unwrap(i, array, 0, array.length);
    }
    
    public static char[] unwrap(final CharIterator i, int max) {
        if (max < 0) {
            throw new IllegalArgumentException("The maximum number of elements (" + max + ") is negative");
        }
        char[] array = new char[16];
        int j = 0;
        while (max-- != 0 && i.hasNext()) {
            if (j == array.length) {
                array = CharArrays.grow(array, j + 1);
            }
            array[j++] = i.nextChar();
        }
        return CharArrays.trim(array, j);
    }
    
    public static char[] unwrap(final CharIterator i) {
        return unwrap(i, Integer.MAX_VALUE);
    }
    
    public static long unwrap(final CharIterator i, final char[][] array, long offset, final long max) {
        if (max < 0L) {
            throw new IllegalArgumentException("The maximum number of elements (" + max + ") is negative");
        }
        if (offset < 0L || offset + max > BigArrays.length(array)) {
            throw new IllegalArgumentException();
        }
        long j = max;
        while (j-- != 0L && i.hasNext()) {
            BigArrays.set(array, offset++, i.nextChar());
        }
        return max - j - 1L;
    }
    
    public static long unwrap(final CharIterator i, final char[][] array) {
        return unwrap(i, array, 0L, BigArrays.length(array));
    }
    
    public static int unwrap(final CharIterator i, final CharCollection c, final int max) {
        if (max < 0) {
            throw new IllegalArgumentException("The maximum number of elements (" + max + ") is negative");
        }
        int j = max;
        while (j-- != 0 && i.hasNext()) {
            c.add(i.nextChar());
        }
        return max - j - 1;
    }
    
    public static char[][] unwrapBig(final CharIterator i, long max) {
        if (max < 0L) {
            throw new IllegalArgumentException("The maximum number of elements (" + max + ") is negative");
        }
        char[][] array = CharBigArrays.newBigArray(16L);
        long j = 0L;
        while (max-- != 0L && i.hasNext()) {
            if (j == BigArrays.length(array)) {
                array = BigArrays.grow(array, j + 1L);
            }
            BigArrays.set(array, j++, i.nextChar());
        }
        return BigArrays.trim(array, j);
    }
    
    public static char[][] unwrapBig(final CharIterator i) {
        return unwrapBig(i, Long.MAX_VALUE);
    }
    
    public static long unwrap(final CharIterator i, final CharCollection c) {
        long n = 0L;
        while (i.hasNext()) {
            c.add(i.nextChar());
            ++n;
        }
        return n;
    }
    
    public static int pour(final CharIterator i, final CharCollection s, final int max) {
        if (max < 0) {
            throw new IllegalArgumentException("The maximum number of elements (" + max + ") is negative");
        }
        int j = max;
        while (j-- != 0 && i.hasNext()) {
            s.add(i.nextChar());
        }
        return max - j - 1;
    }
    
    public static int pour(final CharIterator i, final CharCollection s) {
        return pour(i, s, Integer.MAX_VALUE);
    }
    
    public static CharList pour(final CharIterator i, final int max) {
        final CharArrayList l = new CharArrayList();
        pour(i, l, max);
        l.trim();
        return l;
    }
    
    public static CharList pour(final CharIterator i) {
        return pour(i, Integer.MAX_VALUE);
    }
    
    public static CharIterator asCharIterator(final Iterator i) {
        if (i instanceof CharIterator) {
            return (CharIterator)i;
        }
        return new IteratorWrapper(i);
    }
    
    public static CharIterator narrow(final PrimitiveIterator.OfInt i) {
        return new CheckedPrimitiveIteratorWrapper(i);
    }
    
    public static CharIterator uncheckedNarrow(final PrimitiveIterator.OfInt i) {
        return new PrimitiveIteratorWrapper(i);
    }
    
    public static IntIterator widen(final CharIterator i) {
        return IntIterators.wrap(i);
    }
    
    public static CharListIterator asCharIterator(final ListIterator i) {
        if (i instanceof CharListIterator) {
            return (CharListIterator)i;
        }
        return new ListIteratorWrapper(i);
    }
    
    public static boolean any(final CharIterator iterator, final CharPredicate predicate) {
        return indexOf(iterator, predicate) != -1;
    }
    
    public static boolean any(final CharIterator iterator, final IntPredicate predicate) {
        CharPredicate predicate2;
        if (predicate instanceof CharPredicate) {
            predicate2 = (CharPredicate)predicate;
        }
        else {
            Objects.requireNonNull(predicate);
            predicate2 = predicate::test;
        }
        return any(iterator, predicate2);
    }
    
    public static boolean all(final CharIterator iterator, final CharPredicate predicate) {
        Objects.requireNonNull(predicate);
        while (iterator.hasNext()) {
            if (!predicate.test(iterator.nextChar())) {
                return false;
            }
        }
        return true;
    }
    
    public static boolean all(final CharIterator iterator, final IntPredicate predicate) {
        CharPredicate predicate2;
        if (predicate instanceof CharPredicate) {
            predicate2 = (CharPredicate)predicate;
        }
        else {
            Objects.requireNonNull(predicate);
            predicate2 = predicate::test;
        }
        return all(iterator, predicate2);
    }
    
    public static int indexOf(final CharIterator iterator, final CharPredicate predicate) {
        Objects.requireNonNull(predicate);
        int i = 0;
        while (iterator.hasNext()) {
            if (predicate.test(iterator.nextChar())) {
                return i;
            }
            ++i;
        }
        return -1;
    }
    
    public static int indexOf(final CharIterator iterator, final IntPredicate predicate) {
        CharPredicate predicate2;
        if (predicate instanceof CharPredicate) {
            predicate2 = (CharPredicate)predicate;
        }
        else {
            Objects.requireNonNull(predicate);
            predicate2 = predicate::test;
        }
        return indexOf(iterator, predicate2);
    }
    
    public static CharListIterator fromTo(final char from, final char to) {
        return new IntervalIterator(from, to);
    }
    
    public static CharIterator concat(final CharIterator... a) {
        return concat(a, 0, a.length);
    }
    
    public static CharIterator concat(final CharIterator[] a, final int offset, final int length) {
        return new IteratorConcatenator(a, offset, length);
    }
    
    public static CharIterator unmodifiable(final CharIterator i) {
        return new UnmodifiableIterator(i);
    }
    
    public static CharBidirectionalIterator unmodifiable(final CharBidirectionalIterator i) {
        return new UnmodifiableBidirectionalIterator(i);
    }
    
    public static CharListIterator unmodifiable(final CharListIterator i) {
        return new UnmodifiableListIterator(i);
    }
    
    static {
        EMPTY_ITERATOR = new EmptyIterator();
    }
    
    public static class EmptyIterator implements CharListIterator, Serializable, Cloneable
    {
        private static final long serialVersionUID = -7046029254386353129L;
        
        protected EmptyIterator() {
        }
        
        @Override
        public boolean hasNext() {
            return false;
        }
        
        @Override
        public boolean hasPrevious() {
            return false;
        }
        
        @Override
        public char nextChar() {
            throw new NoSuchElementException();
        }
        
        @Override
        public char previousChar() {
            throw new NoSuchElementException();
        }
        
        @Override
        public int nextIndex() {
            return 0;
        }
        
        @Override
        public int previousIndex() {
            return -1;
        }
        
        @Override
        public int skip(final int n) {
            return 0;
        }
        
        @Override
        public int back(final int n) {
            return 0;
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
        }
        
        @Deprecated
        @Override
        public void forEachRemaining(final Consumer<? super Character> action) {
        }
        
        public Object clone() {
            return CharIterators.EMPTY_ITERATOR;
        }
        
        private Object readResolve() {
            return CharIterators.EMPTY_ITERATOR;
        }
    }
    
    private static class SingletonIterator implements CharListIterator
    {
        private final char element;
        private byte curr;
        
        public SingletonIterator(final char element) {
            this.element = element;
        }
        
        @Override
        public boolean hasNext() {
            return this.curr == 0;
        }
        
        @Override
        public boolean hasPrevious() {
            return this.curr == 1;
        }
        
        @Override
        public char nextChar() {
            if (!this.hasNext()) {
                throw new NoSuchElementException();
            }
            this.curr = 1;
            return this.element;
        }
        
        @Override
        public char previousChar() {
            if (!this.hasPrevious()) {
                throw new NoSuchElementException();
            }
            this.curr = 0;
            return this.element;
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            Objects.requireNonNull(action);
            if (this.curr == 0) {
                action.accept(this.element);
                this.curr = 1;
            }
        }
        
        @Override
        public int nextIndex() {
            return this.curr;
        }
        
        @Override
        public int previousIndex() {
            return this.curr - 1;
        }
        
        @Override
        public int back(final int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            if (n == 0 || this.curr < 1) {
                return 0;
            }
            this.curr = 1;
            return 1;
        }
        
        @Override
        public int skip(final int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            if (n == 0 || this.curr > 0) {
                return 0;
            }
            this.curr = 0;
            return 1;
        }
    }
    
    private static class ArrayIterator implements CharListIterator
    {
        private final char[] array;
        private final int offset;
        private final int length;
        private int curr;
        
        public ArrayIterator(final char[] array, final int offset, final int length) {
            this.array = array;
            this.offset = offset;
            this.length = length;
        }
        
        @Override
        public boolean hasNext() {
            return this.curr < this.length;
        }
        
        @Override
        public boolean hasPrevious() {
            return this.curr > 0;
        }
        
        @Override
        public char nextChar() {
            if (!this.hasNext()) {
                throw new NoSuchElementException();
            }
            return this.array[this.offset + this.curr++];
        }
        
        @Override
        public char previousChar() {
            if (!this.hasPrevious()) {
                throw new NoSuchElementException();
            }
            final char[] array = this.array;
            final int offset = this.offset;
            final int curr = this.curr - 1;
            this.curr = curr;
            return array[offset + curr];
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            Objects.requireNonNull(action);
            while (this.curr < this.length) {
                action.accept(this.array[this.offset + this.curr]);
                ++this.curr;
            }
        }
        
        @Override
        public int skip(int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            if (n <= this.length - this.curr) {
                this.curr += n;
                return n;
            }
            n = this.length - this.curr;
            this.curr = this.length;
            return n;
        }
        
        @Override
        public int back(int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            if (n <= this.curr) {
                this.curr -= n;
                return n;
            }
            n = this.curr;
            this.curr = 0;
            return n;
        }
        
        @Override
        public int nextIndex() {
            return this.curr;
        }
        
        @Override
        public int previousIndex() {
            return this.curr - 1;
        }
    }
    
    private static class IteratorWrapper implements CharIterator
    {
        final Iterator<Character> i;
        
        public IteratorWrapper(final Iterator<Character> i) {
            this.i = i;
        }
        
        @Override
        public boolean hasNext() {
            return this.i.hasNext();
        }
        
        @Override
        public void remove() {
            this.i.remove();
        }
        
        @Override
        public char nextChar() {
            return this.i.next();
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            this.i.forEachRemaining(action);
        }
        
        @Deprecated
        @Override
        public void forEachRemaining(final Consumer<? super Character> action) {
            this.i.forEachRemaining(action);
        }
    }
    
    private static class PrimitiveIteratorWrapper implements CharIterator
    {
        final PrimitiveIterator.OfInt i;
        
        public PrimitiveIteratorWrapper(final PrimitiveIterator.OfInt i) {
            this.i = i;
        }
        
        @Override
        public boolean hasNext() {
            return this.i.hasNext();
        }
        
        @Override
        public void remove() {
            this.i.remove();
        }
        
        @Override
        public char nextChar() {
            return (char)this.i.nextInt();
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            this.i.forEachRemaining((IntConsumer)action);
        }
    }
    
    private static class CheckedPrimitiveIteratorWrapper extends PrimitiveIteratorWrapper
    {
        public CheckedPrimitiveIteratorWrapper(final PrimitiveIterator.OfInt i) {
            super(i);
        }
        
        @Override
        public char nextChar() {
            return SafeMath.safeIntToChar(this.i.nextInt());
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            this.i.forEachRemaining(value -> action.accept(SafeMath.safeIntToChar(value)));
        }
    }
    
    private static class ListIteratorWrapper implements CharListIterator
    {
        final ListIterator<Character> i;
        
        public ListIteratorWrapper(final ListIterator<Character> i) {
            this.i = i;
        }
        
        @Override
        public boolean hasNext() {
            return this.i.hasNext();
        }
        
        @Override
        public boolean hasPrevious() {
            return this.i.hasPrevious();
        }
        
        @Override
        public int nextIndex() {
            return this.i.nextIndex();
        }
        
        @Override
        public int previousIndex() {
            return this.i.previousIndex();
        }
        
        @Override
        public void set(final char k) {
            this.i.set(k);
        }
        
        @Override
        public void add(final char k) {
            this.i.add(k);
        }
        
        @Override
        public void remove() {
            this.i.remove();
        }
        
        @Override
        public char nextChar() {
            return this.i.next();
        }
        
        @Override
        public char previousChar() {
            return this.i.previous();
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            this.i.forEachRemaining(action);
        }
        
        @Deprecated
        @Override
        public void forEachRemaining(final Consumer<? super Character> action) {
            this.i.forEachRemaining(action);
        }
    }
    
    public abstract static class AbstractIndexBasedIterator extends AbstractCharIterator
    {
        protected final int minPos;
        protected int pos;
        protected int lastReturned;
        
        protected AbstractIndexBasedIterator(final int minPos, final int initialPos) {
            this.minPos = minPos;
            this.pos = initialPos;
        }
        
        protected abstract char get(final int p0);
        
        protected abstract void remove(final int p0);
        
        protected abstract int getMaxPos();
        
        @Override
        public boolean hasNext() {
            return this.pos < this.getMaxPos();
        }
        
        @Override
        public char nextChar() {
            if (!this.hasNext()) {
                throw new NoSuchElementException();
            }
            final int lastReturned = this.pos++;
            this.lastReturned = lastReturned;
            return this.get(lastReturned);
        }
        
        @Override
        public void remove() {
            if (this.lastReturned == -1) {
                throw new IllegalStateException();
            }
            this.remove(this.lastReturned);
            if (this.lastReturned < this.pos) {
                --this.pos;
            }
            this.lastReturned = -1;
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            while (this.pos < this.getMaxPos()) {
                final int lastReturned = this.pos++;
                this.lastReturned = lastReturned;
                action.accept(this.get(lastReturned));
            }
        }
        
        @Override
        public int skip(int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            final int max = this.getMaxPos();
            final int remaining = max - this.pos;
            if (n < remaining) {
                this.pos += n;
            }
            else {
                n = remaining;
                this.pos = max;
            }
            this.lastReturned = this.pos - 1;
            return n;
        }
    }
    
    public abstract static class AbstractIndexBasedListIterator extends AbstractIndexBasedIterator implements CharListIterator
    {
        protected AbstractIndexBasedListIterator(final int minPos, final int initialPos) {
            super(minPos, initialPos);
        }
        
        protected abstract void add(final int p0, final char p1);
        
        protected abstract void set(final int p0, final char p1);
        
        @Override
        public boolean hasPrevious() {
            return this.pos > this.minPos;
        }
        
        @Override
        public char previousChar() {
            if (!this.hasPrevious()) {
                throw new NoSuchElementException();
            }
            final int n = this.pos - 1;
            this.pos = n;
            this.lastReturned = n;
            return this.get(n);
        }
        
        @Override
        public int nextIndex() {
            return this.pos;
        }
        
        @Override
        public int previousIndex() {
            return this.pos - 1;
        }
        
        @Override
        public void add(final char k) {
            this.add(this.pos++, k);
            this.lastReturned = -1;
        }
        
        @Override
        public void set(final char k) {
            if (this.lastReturned == -1) {
                throw new IllegalStateException();
            }
            this.set(this.lastReturned, k);
        }
        
        @Override
        public int back(int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            final int remaining = this.pos - this.minPos;
            if (n < remaining) {
                this.pos -= n;
            }
            else {
                n = remaining;
                this.pos = this.minPos;
            }
            this.lastReturned = this.pos;
            return n;
        }
    }
    
    private static class IntervalIterator implements CharListIterator
    {
        private final char from;
        private final char to;
        char curr;
        
        public IntervalIterator(final char from, final char to) {
            this.curr = from;
            this.from = from;
            this.to = to;
        }
        
        @Override
        public boolean hasNext() {
            return this.curr < this.to;
        }
        
        @Override
        public boolean hasPrevious() {
            return this.curr > this.from;
        }
        
        @Override
        public char nextChar() {
            if (!this.hasNext()) {
                throw new NoSuchElementException();
            }
            final char curr = this.curr;
            this.curr = (char)(curr + '\u0001');
            return curr;
        }
        
        @Override
        public char previousChar() {
            if (!this.hasPrevious()) {
                throw new NoSuchElementException();
            }
            return (char)(--this.curr);
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            Objects.requireNonNull(action);
            while (this.curr < this.to) {
                action.accept(this.curr);
                ++this.curr;
            }
        }
        
        @Override
        public int nextIndex() {
            return this.curr - this.from;
        }
        
        @Override
        public int previousIndex() {
            return this.curr - this.from - 1;
        }
        
        @Override
        public int skip(int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            if (this.curr + n <= this.to) {
                this.curr += (char)n;
                return n;
            }
            n = this.to - this.curr;
            this.curr = this.to;
            return n;
        }
        
        @Override
        public int back(int n) {
            if (this.curr - n >= this.from) {
                this.curr -= (char)n;
                return n;
            }
            n = this.curr - this.from;
            this.curr = this.from;
            return n;
        }
    }
    
    private static class IteratorConcatenator implements CharIterator
    {
        final CharIterator[] a;
        int offset;
        int length;
        int lastOffset;
        
        public IteratorConcatenator(final CharIterator[] a, final int offset, final int length) {
            this.lastOffset = -1;
            this.a = a;
            this.offset = offset;
            this.length = length;
            this.advance();
        }
        
        private void advance() {
            while (this.length != 0 && !this.a[this.offset].hasNext()) {
                --this.length;
                ++this.offset;
            }
        }
        
        @Override
        public boolean hasNext() {
            return this.length > 0;
        }
        
        @Override
        public char nextChar() {
            if (!this.hasNext()) {
                throw new NoSuchElementException();
            }
            final CharIterator[] a = this.a;
            final int offset = this.offset;
            this.lastOffset = offset;
            final char next = a[offset].nextChar();
            this.advance();
            return next;
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            while (this.length > 0) {
                final CharIterator[] a = this.a;
                final int offset = this.offset;
                this.lastOffset = offset;
                a[offset].forEachRemaining(action);
                this.advance();
            }
        }
        
        @Deprecated
        @Override
        public void forEachRemaining(final Consumer<? super Character> action) {
            while (this.length > 0) {
                final CharIterator[] a = this.a;
                final int offset = this.offset;
                this.lastOffset = offset;
                a[offset].forEachRemaining(action);
                this.advance();
            }
        }
        
        @Override
        public void remove() {
            if (this.lastOffset == -1) {
                throw new IllegalStateException();
            }
            this.a[this.lastOffset].remove();
        }
        
        @Override
        public int skip(final int n) {
            if (n < 0) {
                throw new IllegalArgumentException("Argument must be nonnegative: " + n);
            }
            this.lastOffset = -1;
            int skipped = 0;
            while (skipped < n && this.length != 0) {
                skipped += this.a[this.offset].skip(n - skipped);
                if (this.a[this.offset].hasNext()) {
                    break;
                }
                --this.length;
                ++this.offset;
            }
            return skipped;
        }
    }
    
    public static class UnmodifiableIterator implements CharIterator
    {
        protected final CharIterator i;
        
        public UnmodifiableIterator(final CharIterator i) {
            this.i = i;
        }
        
        @Override
        public boolean hasNext() {
            return this.i.hasNext();
        }
        
        @Override
        public char nextChar() {
            return this.i.nextChar();
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            this.i.forEachRemaining(action);
        }
        
        @Deprecated
        @Override
        public void forEachRemaining(final Consumer<? super Character> action) {
            this.i.forEachRemaining(action);
        }
    }
    
    public static class UnmodifiableBidirectionalIterator implements CharBidirectionalIterator
    {
        protected final CharBidirectionalIterator i;
        
        public UnmodifiableBidirectionalIterator(final CharBidirectionalIterator i) {
            this.i = i;
        }
        
        @Override
        public boolean hasNext() {
            return this.i.hasNext();
        }
        
        @Override
        public boolean hasPrevious() {
            return this.i.hasPrevious();
        }
        
        @Override
        public char nextChar() {
            return this.i.nextChar();
        }
        
        @Override
        public char previousChar() {
            return this.i.previousChar();
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            this.i.forEachRemaining(action);
        }
        
        @Deprecated
        @Override
        public void forEachRemaining(final Consumer<? super Character> action) {
            this.i.forEachRemaining(action);
        }
    }
    
    public static class UnmodifiableListIterator implements CharListIterator
    {
        protected final CharListIterator i;
        
        public UnmodifiableListIterator(final CharListIterator i) {
            this.i = i;
        }
        
        @Override
        public boolean hasNext() {
            return this.i.hasNext();
        }
        
        @Override
        public boolean hasPrevious() {
            return this.i.hasPrevious();
        }
        
        @Override
        public char nextChar() {
            return this.i.nextChar();
        }
        
        @Override
        public char previousChar() {
            return this.i.previousChar();
        }
        
        @Override
        public int nextIndex() {
            return this.i.nextIndex();
        }
        
        @Override
        public int previousIndex() {
            return this.i.previousIndex();
        }
        
        @Override
        public void forEachRemaining(final CharConsumer action) {
            this.i.forEachRemaining(action);
        }
        
        @Deprecated
        @Override
        public void forEachRemaining(final Consumer<? super Character> action) {
            this.i.forEachRemaining(action);
        }
    }
}
