Package org.daisy.braille.utils.pef
Class PEFSearchIndex
- java.lang.Object
-
- org.daisy.braille.utils.pef.SearchIndex<PEFBook>
-
- org.daisy.braille.utils.pef.PEFSearchIndex
-
public class PEFSearchIndex extends SearchIndex<PEFBook>
Provides a search index for PEFBook objects.
-
-
Constructor Summary
Constructors Constructor Description PEFSearchIndex()
Creates a new pef search index.PEFSearchIndex(int exclude)
Creates a new pef search index with the specified limit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PEFBook p)
Adds a PEFBook to the index.-
Methods inherited from class org.daisy.braille.utils.pef.SearchIndex
add, add, containsAll, containsAll, containsAll
-
-
-
-
Constructor Detail
-
PEFSearchIndex
public PEFSearchIndex()
Creates a new pef search index.
-
PEFSearchIndex
public PEFSearchIndex(int exclude)
Creates a new pef search index with the specified limit.- Parameters:
exclude
- the sub word limit, in other words the shortest substrings that will match the search term. For example, if the limit is 3, a search for "li" will not match entries containing the string "limit"
-
-
Method Detail
-
add
public void add(PEFBook p)
Adds a PEFBook to the index.- Parameters:
p
- the book to add
-
-