|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.book.BookFilterIterator
public class BookFilterIterator
An iterator that filters as it goes.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
private BookFilter |
filter
The value filter |
private Iterator |
it
|
private Book |
next
The stored next value |
| Constructor Summary | |
|---|---|
BookFilterIterator(List books,
BookFilter filter)
Simple ctor |
|
| Method Summary | |
|---|---|
private Book |
findNext()
Find the next (if there is one) |
boolean |
hasNext()
|
Iterator |
iterator()
|
Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Book next
private Iterator it
private BookFilter filter
| Constructor Detail |
|---|
public BookFilterIterator(List books,
BookFilter filter)
filter - The filter to use, if null, will iterate over all values| Method Detail |
|---|
public Iterator iterator()
iterator in interface Iterablepublic boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
remove in interface Iteratorprivate Book findNext()
|
Copyright ยจ 2003-2007 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||