public class ArrayFlowUniverse<E> extends Object implements FlowUniverse<E>
Constructor and Description |
---|
ArrayFlowUniverse(E[] elements) |
Modifier and Type | Method and Description |
---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ArrayFlowUniverse(E[] elements)
public int size()
FlowUniverse
size
in interface FlowUniverse<E>
public Iterator<E> iterator()
FlowUniverse
public E[] toArray()
FlowUniverse
toArray
in interface FlowUniverse<E>
Copyright © 2020 Sable. All rights reserved.