Class IteratorUtil


  • public final class IteratorUtil
    extends Object
    • Method Detail

      • sizeEquals

        public static <T> boolean sizeEquals​(Iterable<T> iterable,
                                             int expectedSize)
      • getLast

        public static <T> T getLast​(Iterator<T> iterator)
      • getFirst

        public static <T> T getFirst​(Iterable<T> iterable)