Class SkippingIterables


  • public class SkippingIterables
    extends java.lang.Object
    Few utility functions
    Since:
    5.3.1
    Author:
    Pavel Klinov
    • Constructor Detail

      • SkippingIterables

        public SkippingIterables()
    • Method Detail

      • forEach

        public static <T> void forEach​(SkippingIterable<T> theIterable,
                                       java.util.function.Consumer<T> theConsumer)
      • consumeIterator

        public static <T,​R> R consumeIterator​(SkippingIterable<T> theIterable,
                                                    java.util.function.Function<java.util.Iterator<T>,​R> theProcessor)
      • toList

        public static <T> java.util.List<T> toList​(SkippingIterable<T> theIterable)
      • size

        public static <T> long size​(SkippingIterator<T> theIterator)
        Closes the iterator.
      • forEach

        public static <T> void forEach​(SkippingIterator<T> theIterator,
                                       java.util.function.Consumer<T> theConsumer)