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() |
|
java.lang.Iterable<? extends A> |
target() |
Возвращает целевой объект
|
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
-
protected final java.lang.Iterable<? extends A> target
-
Constructor Details
-
public EterableProxy(
java.lang.Iterable<? extends A> target)
Конструктор
- Parameters:
target - исходный итератор
-
Method Details
-
public java.lang.Iterable<? extends A> target()
Возвращает целевой объект
- Returns:
- целевой объект
-
public java.util.Iterator<A> iterator()
- Specified by:
iterator in interface java.lang.Iterable<A>