Class RandomArrayIterator<E>

java.lang.Object
one.microstream.util.iterables.RandomArrayIterator<E>
All Implemented Interfaces:
Iterator<E>

public final class RandomArrayIterator<E>
extends Object
implements Iterator<E>
Iterator implementation of a random array element retrieval generator.

Usage example:


 for(final Integer i : random(10, array(1,3,5,7,9)))
 {
 System.out.println(i);
 }
prints (for example):
7
3
1
3
3
3
9
7
1
7