public class SingletonIterator<T> extends Object implements ListIterator<T>
| Constructor and Description |
|---|
SingletonIterator(T singleton) |
SingletonIterator(T singleton,
int index) |
public SingletonIterator(T singleton)
public SingletonIterator(T singleton, int index)
public boolean hasNext()
public T next()
public boolean hasPrevious()
hasPrevious in interface ListIterator<T>public T previous()
previous in interface ListIterator<T>public int nextIndex()
nextIndex in interface ListIterator<T>public int previousIndex()
previousIndex in interface ListIterator<T>public void remove()
public void set(T t)
set in interface ListIterator<T>public void add(T t)
add in interface ListIterator<T>Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.