|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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 java.util.Iterator |
m_iterCurrentThe current Iterator. |
protected java.util.List |
m_listIterThe Iterators. |
| Constructor Summary | |
|---|---|
ChainedEnumerator()Construct an enumerator that will first enumerate multiple enumerators. |
|
ChainedEnumerator(java.util.Enumeration enmrFirst)Construct an enumerator that will first enumerate the passed Enumeration. |
|
ChainedEnumerator(java.util.Enumeration[] aEnum)Construct an enumerator that will first enumerate the Enumerations passed in the array as if they were together a single enumerator. |
|
ChainedEnumerator(java.util.Enumeration enmrFirst, java.util.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(java.util.Iterator iterator)Construct an enumerator that will first enumerate the passed Iterator. |
|
ChainedEnumerator(java.util.Iterator[] aIterator)Construct an enumerator that will first enumerate the Iterators passed in the array as if they were together a single enumerator. |
|
ChainedEnumerator(java.util.Iterator iterFirst, java.util.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(java.util.Enumeration enmr)Add the Enumeration to the end of the chain. |
void |
addIterator(java.util.Iterator iterator)Add the Iterator to the end of the chain. |
protected java.util.Iterator |
getIterator()Get the current or next enumeration in the list |
protected java.util.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. |
java.lang.Object |
next()Returns the next element of this Iterator. |
java.lang.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 java.util.List m_listIter
protected int m_iNextIter
protected java.util.Iterator m_iterCurrent
| Constructor Detail |
|---|
public ChainedEnumerator()
public ChainedEnumerator(java.util.Enumeration enmrFirst)
enmrFirst - the first Enumerationpublic ChainedEnumerator(java.util.Iterator iterator)
iterator - the first Iterator
public ChainedEnumerator(java.util.Enumeration enmrFirst,
java.util.Enumeration enmrSecond)
enmrFirst - the first EnumerationenmrSecond - the second Enumeration
public ChainedEnumerator(java.util.Iterator iterFirst,
java.util.Iterator iterSecond)
iterFirst - the first IteratoriterSecond - the second Iteratorpublic ChainedEnumerator(java.util.Enumeration[] aEnum)
aEnum - an array of Enumerationspublic ChainedEnumerator(java.util.Iterator[] aIterator)
aIterator - an array of Iterators| Method Detail |
|---|
public void addEnumeration(java.util.Enumeration enmr)
enmr - an Enumerationpublic void addIterator(java.util.Iterator iterator)
iterator - an Iteratorpublic boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumerationpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorprotected java.util.Iterator getIterator()
protected java.util.Iterator getRecentIterator()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||