Modifier and Type | Field and Description |
---|---|
private BookFilter |
filter
The value filter
|
private Iterator<Book> |
it |
private Book |
next
The stored next value
|
Constructor and Description |
---|
BookFilterIterator(Iterable<Book> books,
BookFilter filter)
Simple ctor
|
private Book next
private BookFilter filter
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 valuesprivate Book findNext()