Class IterableUtils

java.lang.Object
org.gbif.utils.collection.IterableUtils

public class IterableUtils extends Object
  • Constructor Details

  • Method Details

    • iterable

      public static <T> Iterable<T> iterable(Iterator<T> it)
      Converts an interator into an Iterable for one time use only. If used more than once with the same iterator this will not reset/restart the iteration!