Package de.cxp.ocs.model.result
Class RangeFacetEntry
- java.lang.Object
-
- de.cxp.ocs.model.result.FacetEntry
-
- de.cxp.ocs.model.result.RangeFacetEntry
-
public class RangeFacetEntry extends FacetEntry
Facet entry that describes a numerical interval. If only the lower value or only the upper value is set, this means it's an open ended interval, e.g. '< 100' for upper bound only.
-
-
Constructor Summary
Constructors Constructor Description RangeFacetEntry(Number lowerBound, Number upperBound, long docCount, String link, boolean isSelected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeFacetEntrysetLowerBound(Number lowerBound)RangeFacetEntrysetUpperBound(Number upperBound)
-
-
-
Field Detail
-
type
public final String type
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RangeFacetEntry
public RangeFacetEntry(Number lowerBound, Number upperBound, long docCount, String link, boolean isSelected)
- Parameters:
lowerBound- lower bound of interval represented by that facet entry. Can be null if upper bound exists.upperBound- upper bound of interval represented by that facet entry. Can be null if lower bound exists.docCount- the amount of documents covered by that intervallink- the link to toggle the filter state of the related resultisSelected- true if the related result is currently filtered by that interval
-
-
Method Detail
-
setLowerBound
public RangeFacetEntry setLowerBound(Number lowerBound)
-
setUpperBound
public RangeFacetEntry setUpperBound(Number upperBound)
-
-