- Type Parameters:
- T- Object type to return
- All Implemented Interfaces:
- Iterator<T>
public class OneItemIterator<T>
extends Object
implements Iterator<T>
Dummy iterator/iterable that returns a single object, once.
 
 Note: a "null" object is not supported.