public class SingletonListIterator<T> extends Object implements ListIterator<T>
Created with IntelliJ IDEA. User: luog Date: 23/10/13 Time: 9:02 PM To change this template use File | Settings | File Templates.
| Constructor and Description |
|---|
SingletonListIterator(T t) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T t) |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SingletonListIterator(T t)
public boolean hasNext()
public boolean hasPrevious()
hasPrevious in interface ListIterator<T>public T next()
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 set(T t)
set in interface ListIterator<T>public void add(T t)
add in interface ListIterator<T>Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.