nl.siegmann.epublib.search.SearchResults Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epublib-tools Show documentation
Show all versions of epublib-tools Show documentation
A java library for reading/writing/manipulating epub files
The newest version!
package nl.siegmann.epublib.search;
import java.util.ArrayList;
import java.util.List;
import nl.siegmann.epublib.domain.Book;
public class SearchResults {
private String searchTerm;
public String getSearchTerm() {
return searchTerm;
}
public void setSearchTerm(String searchTerm) {
this.searchTerm = searchTerm;
}
public Book getBook() {
return book;
}
public void setBook(Book book) {
this.book = book;
}
public List getHits() {
return hits;
}
public void setHits(List hits) {
this.hits = hits;
}
private Book book;
private List hits = new ArrayList();
public boolean isEmpty() {
return hits.isEmpty();
}
public int size() {
return hits.size();
}
public void addAll(List searchResults) {
hits.addAll(searchResults);
}
}