|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-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.FilterEnumerator
public class FilterEnumerator
Provide a generic implementation of an enumerator which can enumerate items based on an inclusion test.
Field Summary | |
---|---|
protected boolean |
m_fNext Is there a next item which passed the test? |
protected boolean |
m_fPrev Is there a previous item which passed the test and can be removed? |
protected java.util.Iterator |
m_iter Objects to filter/enumerate. |
protected java.lang.Object |
m_oNext The next item which passed the test. |
protected Filter |
m_test Test to perform on each item. |
Constructor Summary | |
---|---|
FilterEnumerator(java.util.Enumeration enmr, Filter test) Construct the Filter enumerator based on an Enumeration. |
|
FilterEnumerator(java.util.Iterator iter, Filter test) Construct the Filter enumerator based on an Iterator. |
|
FilterEnumerator(java.lang.Object[] aoItem, Filter test) Construct the Filter enumerator based on an array of objects. |
Method Summary | |
---|---|
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() Get the next element in the enumeration. |
void |
remove() Remove the last-returned element that was returned by the Iterator. |
Field Detail |
---|
protected java.util.Iterator m_iter
protected Filter m_test
protected boolean m_fNext
protected boolean m_fPrev
protected java.lang.Object m_oNext
Constructor Detail |
---|
public FilterEnumerator(java.util.Enumeration enmr, Filter test)
enmr
- Enumeration of objects to filtertest
- an inclusion testpublic FilterEnumerator(java.util.Iterator iter, Filter test)
iter
- Iterator of objects to filtertest
- an inclusion testpublic FilterEnumerator(java.lang.Object[] aoItem, Filter test)
aoItem
- array of objects to enumeratetest
- an inclusion testMethod Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |