|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.ChainedEnumerator
public class ChainedEnumerator
Provide an enumerator which enumerates the contents of multiple enumerators.
| Field Summary | |
|---|---|
protected int |
m_iNextIterThe next Iterator (index into the m_listIter) to iterate. |
protected Iterator |
m_iterCurrentThe current Iterator. |
protected List |
m_listIterThe Iterators. |
| Constructor Summary | |
|---|---|
ChainedEnumerator()Construct an enumerator that will first enumerate multiple enumerators. |
|
ChainedEnumerator(Enumeration enmrFirst)Construct an enumerator that will first enumerate the passed Enumeration. |
|
ChainedEnumerator(Enumeration[] aEnum)Construct an enumerator that will first enumerate the Enumerations passed in the array as if they were together a single enumerator. |
|
ChainedEnumerator(Enumeration enmrFirst, Enumeration enmrSecond)Construct an enumerator that will first enumerate the first Enumeration and then will enumerate the second Enumeration as if they were together a single Enumeration. |
|
ChainedEnumerator(Iterator iterator)Construct an enumerator that will first enumerate the passed Iterator. |
|
ChainedEnumerator(Iterator[] aIterator)Construct an enumerator that will first enumerate the Iterators passed in the array as if they were together a single enumerator. |
|
ChainedEnumerator(Iterator iterFirst, Iterator iterSecond)Construct an enumerator that will first enumerate the first Iterator and then will enumerate the second Iterator as if they were together a single Iterator. |
|
| Method Summary | |
|---|---|
void |
addEnumeration(Enumeration enmr)Add the Enumeration to the end of the chain. |
void |
addIterator(Iterator iterator)Add the Iterator to the end of the chain. |
protected Iterator |
getIterator()Get the current or next enumeration in the list |
protected Iterator |
getRecentIterator()Get the recently used iterator, if any. |
boolean |
hasMoreElements()Tests if this enumeration contains more elements. |
boolean |
hasNext()Tests if this Iterator contains more elements. |
Object |
next()Returns the next element of this Iterator. |
Object |
nextElement()Returns the next element of this enumeration. |
void |
remove()Remove the last-returned element that was returned by the Iterator. |
| Field Detail |
|---|
protected List m_listIter
protected int m_iNextIter
protected Iterator m_iterCurrent
| Constructor Detail |
|---|
public ChainedEnumerator()
public ChainedEnumerator(Enumeration enmrFirst)
enmrFirst - the first Enumerationpublic ChainedEnumerator(Iterator iterator)
iterator - the first Iterator
public ChainedEnumerator(Enumeration enmrFirst,
Enumeration enmrSecond)
enmrFirst - the first EnumerationenmrSecond - the second Enumeration
public ChainedEnumerator(Iterator iterFirst,
Iterator iterSecond)
iterFirst - the first IteratoriterSecond - the second Iteratorpublic ChainedEnumerator(Enumeration[] aEnum)
aEnum - an array of Enumerationspublic ChainedEnumerator(Iterator[] aIterator)
aIterator - an array of Iterators| Method Detail |
|---|
public void addEnumeration(Enumeration enmr)
enmr - an Enumerationpublic void addIterator(Iterator iterator)
iterator - an Iteratorpublic boolean hasMoreElements()
hasMoreElements in interface Enumerationpublic Object nextElement()
nextElement in interface Enumerationpublic boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
remove in interface Iteratorprotected Iterator getIterator()
protected Iterator getRecentIterator()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||