public static final class FacetResult.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
FacetResult.Builder |
addValue(FacetResultValue value)
Add a value to this facet result.
|
FacetResult |
build()
Builds a facet result.
|
FacetResult.Builder |
setName(java.lang.String name)
Sets the name of this facet result that is a single facet name.
|
public FacetResult.Builder setName(java.lang.String name)
name
- The name of the facet for this facet result.java.lang.NullPointerException
- if the name is null.java.lang.IllegalArgumentException
- if the name is empty.public FacetResult.Builder addValue(FacetResultValue value)
value
- the value to add.public FacetResult build()
java.lang.NullPointerException
- if the name is null.java.lang.IllegalArgumentException
- if the name is empty or null.