public class CollectionFlowUniverse<E> extends java.lang.Object implements FlowUniverse<E>
| Constructor and Description |
|---|
CollectionFlowUniverse(java.util.Collection<? extends E> elements) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<E> |
iterator()
returns an iterator over the elements of the universe.
|
int |
size()
returns the number of elements of the universe.
|
E[] |
toArray()
returns the elements of the universe in form of an array.
The returned array could be backed or not. |
public CollectionFlowUniverse(java.util.Collection<? extends E> elements)
public int size()
FlowUniversesize in interface FlowUniverse<E>public java.util.Iterator<E> iterator()
FlowUniverseiterator in interface java.lang.Iterable<E>iterator in interface FlowUniverse<E>public E[] toArray()
FlowUniversetoArray in interface FlowUniverse<E>