public class RangeFacet extends Facet
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
max |
java.lang.Object |
min |
java.lang.Object |
selectedMax |
java.lang.Object |
selectedMin |
Constructor and Description |
---|
RangeFacet() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getMax(java.lang.Class<T> clazz)
Gets the maximum value of the facet.
|
<T> T |
getMin(java.lang.Class<T> clazz)
Gets the minimum value of the facet.
|
<T> T |
getSelectedMax(java.lang.Class<T> clazz)
Gets the minimum selected value of the facet, as provided in the request.
|
<T> T |
getSelectedMin(java.lang.Class<T> clazz)
Gets the minimum selected value of the facet, as provided in the request.
|
FacetType |
getType()
The type of the facet (as set in the request).
|
boolean |
hasValues()
Whether or not the facet has any options.
|
public java.lang.Object min
public java.lang.Object max
public java.lang.Object selectedMin
public java.lang.Object selectedMax
public FacetType getType()
public boolean hasValues()
public <T> T getMin(java.lang.Class<T> clazz)
T
- The type of the expected facet value.clazz
- Type of the values in the facet. Must match the type of the attribute faceted on.public <T> T getMax(java.lang.Class<T> clazz)
T
- The type of the expected facet value.clazz
- Type of the values in the facet. Must match the type of the attribute faceted on.public <T> T getSelectedMin(java.lang.Class<T> clazz)
T
- The type of the expected facet value.clazz
- Type of the values in the facet. Must match the type of the attribute faceted on.public <T> T getSelectedMax(java.lang.Class<T> clazz)
T
- The type of the expected facet value.clazz
- Type of the values in the facet. Must match the type of the attribute faceted on.