Class LabelAndValue


  • public final class LabelAndValue
    extends Object
    Single label and its value, usually contained in a FacetResult.
    • Field Detail

      • label

        public final String label
        Facet's label.
      • value

        public final Number value
        Value associated with this label.
      • count

        public final int count
        Number of occurrences for this label.
    • Constructor Detail

      • LabelAndValue

        public LabelAndValue​(String label,
                             Number value)
        Constructor with unspecified count, we assume the value is a count.
      • LabelAndValue

        public LabelAndValue​(String label,
                             Number value,
                             int count)
        Constructor with value and count.