|
||||||||||
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.
The GNU Lesser General Public License for details.
Field Summary | |
---|---|
private BookFilter |
filter
The value filter |
private Iterator<Book> |
it
|
private Book |
next
The stored next value |
Constructor Summary | |
---|---|
BookFilterIterator(Iterable<Book> books,
BookFilter filter)
Simple ctor |
Method Summary | |
---|---|
private Book |
findNext()
Find the next (if there is one) |
boolean |
hasNext()
|
Iterator<Book> |
iterator()
|
Book |
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<Book> it
private BookFilter filter
Constructor Detail |
---|
public BookFilterIterator(Iterable<Book> books, BookFilter filter)
books
- an iterator over a set of booksfilter
- The filter to use, if null, will iterate over all valuesMethod Detail |
---|
public Iterator<Book> iterator()
iterator
in interface Iterable<Book>
public boolean hasNext()
hasNext
in interface Iterator<Book>
public Book next()
next
in interface Iterator<Book>
public void remove()
remove
in interface Iterator<Book>
private Book findNext()
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |