Package com.loop54.model.response
Class RangeFacet
java.lang.Object
com.loop54.model.response.Facet
com.loop54.model.response.RangeFacet
This class provides results for a range facet. A facet that has a min and max value and only entities
in between them are returned.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TGets the maximum value of the facet.<T> TGets the minimum value of the facet.<T> TgetSelectedMax(Class<T> clazz) Gets the minimum selected value of the facet, as provided in the request.<T> TgetSelectedMin(Class<T> clazz) Gets the minimum selected value of the facet, as provided in the request.getType()The type of the facet (as set in the request).booleanWhether or not the facet has any options.
-
Field Details
-
min
-
max
-
selectedMin
-
selectedMax
-
-
Constructor Details
-
RangeFacet
public RangeFacet()
-
-
Method Details
-
getType
The type of the facet (as set in the request). -
hasValues
public boolean hasValues()Whether or not the facet has any options. -
getMin
Gets the minimum value of the facet.- Type Parameters:
T- The type of the expected facet value.- Parameters:
clazz- Type of the values in the facet. Must match the type of the attribute faceted on.- Returns:
- Minimum value of the facet.
-
getMax
Gets the maximum value of the facet.- Type Parameters:
T- The type of the expected facet value.- Parameters:
clazz- Type of the values in the facet. Must match the type of the attribute faceted on.- Returns:
- Maximum value of the facet.
-
getSelectedMin
Gets the minimum selected value of the facet, as provided in the request.- Type Parameters:
T- The type of the expected facet value.- Parameters:
clazz- Type of the values in the facet. Must match the type of the attribute faceted on.- Returns:
- Minimum selected value of the facet.
-
getSelectedMax
Gets the minimum selected value of the facet, as provided in the request.- Type Parameters:
T- The type of the expected facet value.- Parameters:
clazz- Type of the values in the facet. Must match the type of the attribute faceted on.- Returns:
- Minimum selected value of the facet.
-