|
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 ListIteratorMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object previous()
previous
in interface ListIterator
NoSuchElementException
- if the iteration has no
previous elementpublic int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
public void set(Object o)
set
in interface ListIterator
o
- the element with which to replace the last element
returned by next or previouspublic void add(Object o)
add
in interface ListIterator
o
- 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 |