All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.siegmann.epublib.search.SearchResults Maven / Gradle / Ivy

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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy