|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.ConverterCollections.ConverterListIterator
public static class ConverterCollections.ConverterListIterator
A Converter ListIterator views an underlying ListIterator through a Converter.
| Field Summary | |
|---|---|
protected Converter |
m_convDown
The Converter from this ListIterator to the underlying ListIterator. |
protected Converter |
m_convUp
The Converter from the underlying ListIterator to this ListIterator. |
protected ListIterator |
m_iter
The underlying ListIterator. |
| Constructor Summary | |
|---|---|
ConverterCollections.ConverterListIterator(ListIterator iter,
Converter convUp,
Converter convDown)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Object o)
Inserts the specified element into the list. |
boolean |
hasNext()
Returns true if this list iterator has more elements when traversing the list in the forward direction. |
boolean |
hasPrevious()
Returns true if this list iterator has more elements when traversing the list in the reverse direction. |
Object |
next()
Returns the next element in the list. |
int |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next. |
Object |
previous()
Returns the previous element in the list. |
int |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous. |
void |
remove()
Removes from the list the last element that was returned by next or previous. |
void |
set(Object o)
Replaces the last element returned by next or previous with the specified element. |
| Field Detail |
|---|
protected ListIterator m_iter
protected Converter m_convUp
protected Converter m_convDown
| Constructor Detail |
|---|
public ConverterCollections.ConverterListIterator(ListIterator iter,
Converter convUp,
Converter convDown)
iter - the underlying ListIteratorconvUp - the Converter from the underlying ListIteratorconvDown - the Converter to the underlying ListIterator| Method Detail |
|---|
public boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object previous()
previous in interface ListIteratorNoSuchElementException - if the iteration has no
previous elementpublic int nextIndex()
nextIndex in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorpublic void set(Object o)
set in interface ListIteratoro - the element with which to replace the last element
returned by next or previouspublic void add(Object o)
add in interface ListIteratoro - the element to insert
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||