-
- All Superinterfaces:
ScalarTyped,ScalarValued,TokenTyped,TokenValued
- All Known Subinterfaces:
DoubleInputField,DoubleValued,DoubleValuedIterator,FloatInputField,FloatValued,FloatValuedIterator,IntInputField,IntValued,IntValuedIterator,LongInputField,LongValued,LongValuedIterator,MoneyInputField,MoneyValued,MoneyValuedIterator,NumericInputField,NumericValuedIterator
- All Known Implementing Classes:
DoubleRegister,DoubleToken,FloatRegister,FloatToken,IntRegister,IntToken,LongRegister,LongToken,MoneyRegister,MoneyToken,NullToken,NumericRegister,NumericToken
public interface NumericValued extends ScalarValued
ATokenValuedobject containing a numeric value.- See Also:
TokenTypeConstant#NUMERIC
-
-
Field Summary
Fields Modifier and Type Field Description static BigDecimalMAX_INFINITYThe value representing positive infinity.static BigDecimalMIN_INFINITYThe value representing negative infinity.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigDecimalasBigDecimal()Gets the contained numeric value.-
Methods inherited from interface com.pervasive.datarush.tokens.scalar.ScalarValued
getType, isZero
-
Methods inherited from interface com.pervasive.datarush.tokens.TokenValued
isNull
-
-
-
-
Field Detail
-
MAX_INFINITY
static final BigDecimal MAX_INFINITY
The value representing positive infinity.
-
MIN_INFINITY
static final BigDecimal MIN_INFINITY
The value representing negative infinity.
-
-
Method Detail
-
asBigDecimal
BigDecimal asBigDecimal()
Gets the contained numeric value.- Returns:
- the contained value as a
java.math.BigDecimal. If null valued, as indicated byTokenValued.isNull(),nullis returned.
-
-