T - The type of the entries the iterator is over.public class MyReadOnlyIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
MyReadOnlyIterator(java.util.Iterator<T> iterator)
Creates the MyReadOnlyIterator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public MyReadOnlyIterator(java.util.Iterator<T> iterator)
iterator - -