Package org.onlab.util
Class Generator<T>
- java.lang.Object
 - 
- org.onlab.util.Generator<T>
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Generator() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Iterator<T>iterator()protected abstract voidrun()voidyield(T element)Makes available the next item.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface java.lang.Iterable
forEach, spliterator 
 - 
 
 - 
 
- 
- 
Method Detail
- 
run
protected abstract void run() throws InterruptedException- Throws:
 InterruptedException
 
- 
yield
public void yield(T element) throws InterruptedException
Makes available the next item.- Parameters:
 element- the next item- Throws:
 InterruptedException- if await fails
 
 - 
 
 -