Package VASSAL.tools

Class IteratorUtils

java.lang.Object
VASSAL.tools.IteratorUtils

public class IteratorUtils extends Object
  • Constructor Details

    • IteratorUtils

      public IteratorUtils()
  • Method Details

    • iterate

      public static <T> Iterable<T> iterate(Iterator<T> i)
      A static convenience method for making an Iterator into an Iterable.
      Parameters:
      i - the Iterator
      Returns:
      an Iterable wrapping i