Class NumberField
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.search.NumberField
-
-
Constructor Summary
Constructors Constructor Description NumberField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetRaw()The raw numeric value of the fieldIntegergetRawInteger()The raw Integer representation of the fieldLonggetRawLong()The raw Long representation of the fieldNumberFieldsetRaw(BigDecimal raw)The raw numeric value of the field
-
-
-
Method Detail
-
getRawLong
public Long getRawLong()
The raw Long representation of the field- Returns:
- The Long value
- Throws:
ArithmeticException- if this has a nonzero fractional part, or will not fit in a long
-
getRawInteger
public Integer getRawInteger()
The raw Integer representation of the field- Returns:
- The Integer value
- Throws:
ArithmeticException- if this has a nonzero fractional part, or will not fit in an int
-
getRaw
public BigDecimal getRaw()
The raw numeric value of the field
-
setRaw
public NumberField setRaw(BigDecimal raw)
The raw numeric value of the field- Parameters:
raw- the raw value- Returns:
this.
-
-