|
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.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 Iterator |
m_iter
Objects to filter/enumerate. |
protected Object |
m_oNext
The next item which passed the test. |
protected Filter |
m_test
Test to perform on each item. |
| Constructor Summary | |
|---|---|
FilterEnumerator(Enumeration enmr,
Filter test)
Construct the Filter enumerator based on an Enumeration. |
|
FilterEnumerator(Iterator iter,
Filter test)
Construct the Filter enumerator based on an Iterator. |
|
FilterEnumerator(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. |
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 Filter m_test
protected boolean m_fNext
protected boolean m_fPrev
protected Object m_oNext
| Constructor Detail |
|---|
public FilterEnumerator(Enumeration enmr,
Filter test)
enmr - Enumeration of objects to filtertest - an inclusion test
public FilterEnumerator(Iterator iter,
Filter test)
iter - Iterator of objects to filtertest - an inclusion test
public FilterEnumerator(Object[] aoItem,
Filter test)
aoItem - array of objects to enumeratetest - an inclusion test| Method Detail |
|---|
public 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 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 | |||||||