Class FacetRange (2.0.0)

public final class FacetRange

A FacetRange is a range with a start (inclusive) and an end (exclusive).

Inheritance

java.lang.Object > FacetRange

Static Methods

withEnd(Double end)

public static FacetRange withEnd(Double end)

Creates a numeric FacetRange that matches any value less than end.

Parameter
NameDescription
endDouble
Returns
TypeDescription
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
NameDescription
startDouble
Returns
TypeDescription
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
NameDescription
startDouble
endDouble
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

toString()

public String toString()
Returns
TypeDescription
String
Overrides