Package com.complexible.common.collect

# Class SkippingIterables

java.lang.Object
com.complexible.common.collect.SkippingIterables

public class SkippingIterables extends Object
Few utility functions

Since:
  5.3.1
Author:
  Pavel Klinov

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SkippingIterables()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static <T, R> R`
  `consumeIterator(SkippingIterable<T> theIterable, Function<Iterator<T>,R> theProcessor)`
  `static <T> void`
  `forEach(SkippingIterable<T> theIterable, Consumer<T> theConsumer)`
  `static <T> void`
  `forEach(SkippingIterator<T> theIterator, Consumer<T> theConsumer)`
  `static <T> long`
  `size(SkippingIterable<T> theIterable)`
  `static <T> long`
  `size(SkippingIterator<T> theIterator)`
  Closes the iterator.
  `static <T> List<T>`
  `toList(SkippingIterable<T> theIterable)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SkippingIterables

    public SkippingIterables()

- ## Method Details

  - ### size

    public static <T> long size(SkippingIterable<T> theIterable)

  - ### forEach

    public static <T> void forEach(SkippingIterable<T> theIterable, Consumer<T> theConsumer)

  - ### consumeIterator

    public static <T, R> R consumeIterator(SkippingIterable<T> theIterable, Function<Iterator<T>,R> theProcessor)

  - ### toList

    public static <T> 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, Consumer<T> theConsumer)