Package xyz.cofe.iter

Class EterableProxy<A>

java.lang.Object
xyz.cofe.iter.EterableProxy<A>
Type Parameters:
A - тип элемента
All Implemented Interfaces:
java.lang.Iterable<A>, Eterable<A>

public class EterableProxy<A>
extends java.lang.Object
implements Eterable<A>
Прокси для итератора
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.Iterable<? extends A> target  
  • Constructor Summary

    Constructors 
    Constructor Description
    EterableProxy​(java.lang.Iterable<? extends A> target)
    Конструктор
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface xyz.cofe.iter.Eterable

    count, filter, first, limit, map, notNull, product, product, product, product, product, reduce, toList, union, union

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • target

      protected final java.lang.Iterable<? extends A> target
  • Constructor Details

    • EterableProxy

      public EterableProxy​(java.lang.Iterable<? extends A> target)
      Конструктор
      Parameters:
      target - исходный итератор
  • Method Details

    • iterator

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