Package jadex.commons
Class IterableIteratorWrapper<T>
- java.lang.Object
-
- jadex.commons.IterableIteratorWrapper<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
public class IterableIteratorWrapper<T> extends java.lang.Object implements java.lang.Iterable<T>
Needed because Java does not support enhanced for loop with Iterator elements :-( why? Only Iterable is supported.
-
-
Constructor Summary
Constructors Constructor Description IterableIteratorWrapper(java.util.Iterator<T> iter)
Create a new wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<T>
iterator()
Get the iterator.
-