Class FacetLabel


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

      Constructors 
      Constructor Description
      FacetLabel​(java.lang.String value, java.lang.String label, int labelIndex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getLabel()
      Gets the facet display label
      int getLabelIndex()
      Gets the label index to be used for sorting.
      java.lang.String getValue()
      Gets the original facet value or a new modified value
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FacetLabel

        public FacetLabel​(java.lang.String value,
                          java.lang.String label,
                          int labelIndex)
        Parameters:
        value - String
        label - String
        labelIndex - int
    • Method Detail

      • getValue

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

        public java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object