Class NumberRange
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.search.facet.value.NumberRange
-
- All Implemented Interfaces:
FacetRangeValue<BigDecimal>,FacetValue
public class NumberRange extends Object implements FacetRangeValue<BigDecimal>
-
-
Constructor Summary
Constructors Constructor Description NumberRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetCount()BigDecimalgetFrom()IntegergetFromInteger()The raw Integer representation of the facet valueLonggetFromLong()The raw Long representation of the facet valueStringgetName()BigDecimalgetTo()IntegergetToInteger()The raw Integer representation of the facet valueLonggetToLong()The raw Long representation of the facet valueNumberRangesetCount(Long count)NumberRangesetFrom(BigDecimal from)NumberRangesetName(String name)NumberRangesetTo(BigDecimal to)
-
-
-
Method Detail
-
getToLong
public Long getToLong()
The raw Long representation of the facet value- Returns:
- The Long value
- Throws:
ArithmeticException- if this has a nonzero fractional part, or will not fit in a long
-
getToInteger
public Integer getToInteger()
The raw Integer representation of the facet value- Returns:
- The Integer value
- Throws:
ArithmeticException- if this has a nonzero fractional part, or will not fit in an int
-
getFromLong
public Long getFromLong()
The raw Long representation of the facet value- Returns:
- The Long value
- Throws:
ArithmeticException- if this has a nonzero fractional part, or will not fit in a long
-
getFromInteger
public Integer getFromInteger()
The raw Integer representation of the facet value- Returns:
- The Integer value
- Throws:
ArithmeticException- if this has a nonzero fractional part, or will not fit in an int
-
getFrom
public BigDecimal getFrom()
- Specified by:
getFromin interfaceFacetRangeValue<BigDecimal>
-
getTo
public BigDecimal getTo()
- Specified by:
getToin interfaceFacetRangeValue<BigDecimal>
-
getCount
public Long getCount()
- Specified by:
getCountin interfaceFacetValue
-
getName
public String getName()
-
setFrom
public NumberRange setFrom(BigDecimal from)
- Returns:
this.
-
setTo
public NumberRange setTo(BigDecimal to)
- Returns:
this.
-
setCount
public NumberRange setCount(Long count)
- Returns:
this.
-
setName
public NumberRange setName(String name)
- Returns:
this.
-
-