Class RandomIterator<T>
- java.lang.Object
-
- org.opennms.netmgt.dnsresolver.netty.RandomIterator<T>
-
- Type Parameters:
T
- the type of elements in the list
- All Implemented Interfaces:
java.lang.Iterable<T>
public class RandomIterator<T> extends java.lang.Object implements java.lang.Iterable<T>
An infinite iterator that will return random items from the given list.
-
-
Constructor Summary
Constructors Constructor Description RandomIterator(java.util.List<T> coll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<T>
iterator()
-