public static final class FacetResult.BuilderA builder of facet result. This is not thread-safe.
Methods
addValue(FacetResultValue value)
public FacetResult.Builder addValue(FacetResultValue value)Add a value to this facet result.
| Parameter | |
|---|---|
| Name | Description |
value |
FacetResultValuethe value to add. |
| Returns | |
|---|---|
| Type | Description |
FacetResult.Builder |
this builder |
build()
public FacetResult build()Builds a facet result. The builder must at least have a name.
| Returns | |
|---|---|
| Type | Description |
FacetResult |
the facet result built by this builder |
setName(String name)
public FacetResult.Builder setName(String name)Sets the name of this facet result that is a single facet name.
| Parameter | |
|---|---|
| Name | Description |
name |
StringThe name of the facet for this facet result. |
| Returns | |
|---|---|
| Type | Description |
FacetResult.Builder |
this builder |