@Override
        public T next() {
            if (!hasNext()) throw new NoSuchElementException();
            Object res = colGetEntry(mIndex, mOffset);
            mIndex++;
            mCanRemove = true;
            return (T) res;
        }
Helper for writing standard Java collection interfaces to a data
structure like {@link ArrayMap}.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/MapCollections.java