src/main/java/com/github/wnameless/json/flattener/IndexedPeekIterator.java
public static <T> IndexedPeekIterator<T> newIndexedPeekIterator(
      Iterable<T> iter) {
    return new IndexedPeekIterator<T>(iter.iterator());
  }
public static <T> IndexedPeekIterator<T> newIndexedPeekIterator(
      Iterable<T> iter) {
    return new IndexedPeekIterator<T>(iter.iterator());
  }
Creates an {@link IndexedPeekIterator} by given Iterable.

@param <T>
the type of elements
@param iter
any Iterable
@return an {@link IndexedPeekIterator}