Package com.google.appengine.api.search
Class FacetRange
- java.lang.Object
-
- com.google.appengine.api.search.FacetRange
-
public final class FacetRange extends Object
A FacetRange is a range with a start (inclusive) and an end (exclusive).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEnd()Returns the string representation of the upper bound of the range or null if there is no upper bound.StringgetStart()Returns the string representation of the lower bound of the range or null if there is no lower bound.StringtoString()static FacetRangewithEnd(Double end)Creates a numericFacetRangethat matches any value less thanend.static FacetRangewithStart(Double start)Creates a numericFacetRangethat matches any value greater than or equal tostart.static FacetRangewithStartEnd(Double start, Double end)Creates a numericFacetRangethat matches any value greater than or equal tostartbut less thanend.
-
-
-
Method Detail
-
withStartEnd
public static FacetRange withStartEnd(Double start, Double end)
Creates a numericFacetRangethat matches any value greater than or equal tostartbut less thanend.- Returns:
- an instance of
FacetRange. - Throws:
IllegalArgumentException- if start or end is not a finite number.
-
withStart
public static FacetRange withStart(Double start)
Creates a numericFacetRangethat matches any value greater than or equal tostart.- Returns:
- an instance of
FacetRange. - Throws:
IllegalArgumentException- if start or end is not a finite number.
-
withEnd
public static FacetRange withEnd(Double end)
Creates a numericFacetRangethat matches any value less thanend.- Returns:
- an instance of
FacetRange. - Throws:
IllegalArgumentException- if start or end is not a finite number.
-
getStart
public String getStart()
Returns the string representation of the lower bound of the range or null if there is no lower bound.
-
getEnd
public String getEnd()
Returns the string representation of the upper bound of the range or null if there is no upper bound.
-
-