Package com.github.underscore
Class Underscore.MyIterable<T>
- java.lang.Object
-
- com.github.underscore.Underscore.MyIterable<T>
-
- All Implemented Interfaces:
Iterable<T>
- Enclosing class:
- Underscore<T>
private static final class Underscore.MyIterable<T> extends Object implements Iterable<T>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
firstRun
private UnaryOperator<T>
unaryOperator
private T
value
-
Constructor Summary
Constructors Constructor Description MyIterable(T seed, UnaryOperator<T> unaryOperator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
unaryOperator
private final UnaryOperator<T> unaryOperator
-
firstRun
private boolean firstRun
-
value
private T value
-
-
Constructor Detail
-
MyIterable
MyIterable(T seed, UnaryOperator<T> unaryOperator)
-
-