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

org.wicketstuff.datatable_autocomplete.trie.Trie Maven / Gradle / Ivy

package org.wicketstuff.datatable_autocomplete.trie;

import java.util.List;

import org.apache.wicket.IClusterable;

/**
 * 
 * @author mocleiri
 *
 * With the introduction of the TernarySearchTrie this interface was extracted to provide a common base between them.
 */
public interface Trie extends IClusterable {

	/**
	 * @param streetName
	 * @return
	 */
	public abstract void index(C value);

	/**
	 * Get the list of strings that are reachable from the prefix given.
	 * 
	 * i.e. the ordered traversal of the subtree for the prefix given.
	 * 
	 * @param prefix
	 * @return
	 */
	public abstract List getWordList(String prefix);
	
	public abstract ListgetWordList (String prefix, ITrieFilterfilter);
	
	public abstract ListgetWordList (String prefix, ITrieFilterfilter, int limit);

	public abstract List getWordList(String prefix, int limit);

	/**
	 * Invoked before the indexing process is started.
	 */
	public abstract void preIndexing();

	/**
	 * Invoked after the index process has completed.
	 */
	public abstract void postIndexing();
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy