Class FacetValue
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.search.FacetValue
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FacetValue>
public class FacetValue extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<FacetValue>
This class defines the contents of a facet. For example, cpu and monitor are FacetValue of the hardware Facet. Each FacetValue contains concrete items???(either subFacetValue or items)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FacetValue(java.lang.String name, long count, boolean selected)FacetValue(java.lang.String name, java.lang.String displayName, long count, boolean selected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTag(java.lang.String tag)intcompareTo(FacetValue anotherFacetValue)booleanequals(java.lang.Object obj)longgetCount()java.lang.StringgetDisplayName()java.lang.StringgetName()java.util.Set<java.lang.String>getTags()inthashCode()booleanisSelected()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getDisplayName
public java.lang.String getDisplayName()
-
getCount
public long getCount()
-
isSelected
public boolean isSelected()
-
addTag
public void addTag(java.lang.String tag)
-
getTags
public java.util.Set<java.lang.String> getTags()
-
compareTo
public int compareTo(FacetValue anotherFacetValue)
- Specified by:
compareToin interfacejava.lang.Comparable<FacetValue>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-