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

se.l4.silo.search.FacetEntry Maven / Gradle / Ivy

There is a newer version: 0.2.3
Show newest version
package se.l4.silo.search;

/**
 * Entry as created and returned by a facet when searching. Use {@link Facets}
 * to access them.
 *
 * @author Andreas Holstenson
 *
 */
public interface FacetEntry
{
	/**
	 * Get the label of the facet.
	 *
	 * @return
	 */
	String label();

	/**
	 * Get the number of search results that would match if this facet
	 * was applied.
	 *
	 * @return
	 */
	int count();

	/**
	 * Get the data of the facet.
	 *
	 * @return
	 */
	Object data();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy