Package org.cactoos.iterable
Class IterableOf<X>
- java.lang.Object
-
- org.cactoos.iterable.IterableOf<X>
-
-
Constructor Summary
Constructors Constructor Description IterableOf(Iterator<? extends X> list)
Ctor.IterableOf(Scalar<? extends Iterator<? extends X>> sclr)
Ctor.IterableOf(X... items)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
int
hashCode()
Iterator<X>
iterator()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
IterableOf
@SafeVarargs public IterableOf(X... items)
Ctor.- Parameters:
items
- The array
-
IterableOf
public IterableOf(Iterator<? extends X> list)
Ctor.- Parameters:
list
- The list- Since:
- 0.21
-
-