Class IteratorUtil


  • public final class IteratorUtil
    extends Object
    Since:
    6.11.0
    Author:
    Clément Fournier
    • Method Detail

      • toList

        public static <T> List<T> toList​(Iterator<T> it)
      • count

        public static int count​(Iterator<?> it)
        Counts the items in this iterator, exhausting it.
      • asReversed

        public static <T> Iterable<T> asReversed​(List<T> lst)