com.browseengine.bobo.api
Class BrowseFacet

java.lang.Object
  extended by com.browseengine.bobo.api.BrowseFacet
All Implemented Interfaces:
Serializable

public class BrowseFacet
extends Object
implements Serializable

This class represents a facet

See Also:
Serialized Form

Constructor Summary
BrowseFacet()
           
BrowseFacet(String value, int hitcount)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getFacetValueHitCount()
          Gets the hit count
 int getHitCount()
          Deprecated. use getFacetValueHitCount()
 String getValue()
          Gets the facet value
 List<BrowseFacet> merge(List<BrowseFacet> v, Comparator<BrowseFacet> comparator)
           
 void setFacetValueHitCount(int hitcount)
          Sets the hit count
 void setHitCount(int hitcount)
          Deprecated. use setFacetValueHitCount(int)
 void setValue(String value)
          Sets the facet value
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowseFacet

public BrowseFacet()

BrowseFacet

public BrowseFacet(String value,
                   int hitcount)
Method Detail

getValue

public String getValue()
Gets the facet value

Returns:
value
See Also:
setValue(String)

setValue

public void setValue(String value)
Sets the facet value

Parameters:
value - Facet value
See Also:
getValue()

getHitCount

public int getHitCount()
Deprecated. use getFacetValueHitCount()

Gets the hit count

Returns:
hit count

setHitCount

public void setHitCount(int hitcount)
Deprecated. use setFacetValueHitCount(int)

Sets the hit count

Parameters:
hitcount - Hit count

getFacetValueHitCount

public int getFacetValueHitCount()
Gets the hit count

Returns:
hit count
See Also:
setHitCount(int)

setFacetValueHitCount

public void setFacetValueHitCount(int hitcount)
Sets the hit count

Parameters:
hitcount - Hit count
See Also:
getHitCount()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

merge

public List<BrowseFacet> merge(List<BrowseFacet> v,
                               Comparator<BrowseFacet> comparator)


Copyright © 2011. All Rights Reserved.