|
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.ConverterEnumerator
public class ConverterEnumerator
Provide an implementation of an enumerator which converts each of the items which it enumerates.
Field Summary | |
---|---|
protected Converter |
m_conv
Converter to convert each item. |
protected Iterator |
m_iter
Iterator of Objects to convert. |
Constructor Summary | |
---|---|
ConverterEnumerator(Enumeration enmr,
Converter conv)
Construct the Converter enumerator based on an Enumeration. |
|
ConverterEnumerator(Iterator iter,
Converter conv)
Construct the Converter enumerator based on an Iterator. |
|
ConverterEnumerator(Object[] aoItem,
Converter conv)
Construct the Converter enumerator based on an array of objects. |
Method Summary | |
---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
boolean |
hasNext()
Determine if this Iterator contains more elements. |
Object |
next()
Returns the next element of this Iterator. |
Object |
nextElement()
Get the next element in the enumeration. |
void |
remove()
Remove the last-returned element that was returned by the Iterator. |
Field Detail |
---|
protected Iterator m_iter
protected Converter m_conv
Constructor Detail |
---|
public ConverterEnumerator(Enumeration enmr, Converter conv)
enmr
- java.util.Enumeration of objects to convertconv
- a Converterpublic ConverterEnumerator(Iterator iter, Converter conv)
iter
- java.util.Iterator of objects to convertconv
- a Converterpublic ConverterEnumerator(Object[] aoItem, Converter conv)
aoItem
- array of objects to enumerateconv
- a ConverterMethod Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
public void remove()
remove
in interface Iterator
|
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 |