public final class FacetRangeA FacetRange is a range with a start (inclusive) and an end (exclusive).
Static Methods
withEnd(Double end)
public static FacetRange withEnd(Double end)Creates a numeric FacetRange that matches any value less than end.
| Parameter | |
|---|---|
| Name | Description |
end |
Double |
| Returns | |
|---|---|
| Type | Description |
FacetRange |
an instance of FacetRange. |
withStart(Double start)
public static FacetRange withStart(Double start)Creates a numeric FacetRange that matches any value greater than or equal to
start.
| Parameter | |
|---|---|
| Name | Description |
start |
Double |
| Returns | |
|---|---|
| Type | Description |
FacetRange |
an instance of FacetRange. |
withStartEnd(Double start, Double end)
public static FacetRange withStartEnd(Double start, Double end)Creates a numeric FacetRange that matches
any value greater than or equal to start but less than end.
| Parameters | |
|---|---|
| Name | Description |
start |
Double |
end |
Double |
| Returns | |
|---|---|
| Type | Description |
FacetRange |
an instance of FacetRange. |
Methods
getEnd()
public String getEnd()Returns the string representation of the upper bound of the range or null if there is no upper bound.
| Returns | |
|---|---|
| Type | Description |
String |
|
getStart()
public String getStart()Returns the string representation of the lower bound of the range or null if there is no lower bound.
| Returns | |
|---|---|
| Type | Description |
String |
|
toString()
public String toString()| Returns | |
|---|---|
| Type | Description |
String |
|