public interface NumericElement extends Element
Element
s.Modifier and Type | Method and Description |
---|---|
double |
getDoubleValue()
Returns the value cast to a double.
|
int |
getIntValue()
Returns the value cast to an integer.
|
long |
getLongValue()
Returns the value cast to a long.
|
accept, find, find, findFirst, findFirst, getName, getType, getValueAsObject, getValueAsString, queryPath, queryPath, withName
asElement
double getDoubleValue()
Note: There may be a loss of precision using this method if the
NumericElement
is not a
DoubleElement
.
int getIntValue()
Note: There may be a loss of precision using this method if the
NumericElement
is not a
IntegerElement
.
long getLongValue()
Note: There may be a loss of precision using this method if the
NumericElement
is not a
LongElement
.
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.