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, compareTo, find, find, findFirst, findFirst, getName, getType, getValueAsObject, getValueAsString, size, 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–2014 Allanbank Consulting, Inc.. All rights reserved.