Class IterableImpl<T>

java.lang.Object
rs.baselib.util.IterableImpl<T>
All Implemented Interfaces:
java.lang.Iterable<T>

public class IterableImpl<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Wraps an Iterator.
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    IterableImpl​(java.util.Iterator<T> iterator)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.util.Iterator<T> iterator()

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • IterableImpl

      public IterableImpl​(java.util.Iterator<T> iterator)
      Constructor.
      Parameters:
      iterator - - the underlying iterator
  • Method Details

    • iterator

      public java.util.Iterator<T> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<T>