java.lang.Object
org.alfresco.repo.search.impl.solr.facet.handler.FacetLabel

public class FacetLabel extends Object
A class to encapsulate the result of the facet label display handler.
Since:
5.0
Author:
Jamal Kaabi-Mofrad
  • Constructor Details

    • FacetLabel

      public FacetLabel(String value, String label, int labelIndex)
      Parameters:
      value - String
      label - String
      labelIndex - int
  • Method Details

    • getValue

      public String getValue()
      Gets the original facet value or a new modified value
      Returns:
      the original facet value or a new modified value
    • getLabel

      public String getLabel()
      Gets the facet display label
      Returns:
      the label
    • getLabelIndex

      public int getLabelIndex()
      Gets the label index to be used for sorting. The index only relevant to to Date and Size facets.
      Returns:
      the index or -1, if it isn't relevant to the facet label
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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