public final class FacetResultValue
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static FacetResultValue |
create(java.lang.String label,
int count,
java.lang.String refinementToken)
Creates and returns a facet result value.
|
int |
getCount()
Returns the count of the result value, which is an integer representing
how many times this value is repeated in the result for the given facet value or range.
|
java.lang.String |
getLabel()
Returns the label of this facet result value.
|
java.lang.String |
getRefinementToken()
Returns the refinement token for this result value.
|
java.lang.String |
toString() |
public static FacetResultValue create(java.lang.String label, int count, java.lang.String refinementToken)
label
- The label of the result returned by the backend that is the name of facet
for atom facets and the string "[start,end)" for number facets.count
- an integer representing how many times this value is repeated in the result.refinementToken
- the token string for further refinement of the search result. To
combine values for a single facet, add each of them separately to FacetRequest. There
will be a disjunction between refinements for the same facet.FacetResultValue
.java.lang.IllegalArgumentException
- if label or refinementToken are empty.public java.lang.String getLabel()
public java.lang.String getRefinementToken()
public int getCount()
public java.lang.String toString()
toString
in class java.lang.Object