public class DecimalLiteralImpl extends LiteralImpl
LiteralImpl
that stores an integer value using a
BigDecimal
object.Constructor and Description |
---|
DecimalLiteralImpl(BigDecimal value)
Creates an xsd:decimal literal with the specified value.
|
DecimalLiteralImpl(BigDecimal value,
URI datatype)
Creates a literal with the specified value and datatype.
|
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the byte value of this literal.
|
BigDecimal |
decimalValue()
Returns the decimal value of this literal.
|
double |
doubleValue()
Returns the double value of this literal.
|
float |
floatValue()
Returns the float value of this literal.
|
BigInteger |
integerValue()
Returns the integer value of this literal.
|
int |
intValue()
Returns the int value of this literal.
|
long |
longValue()
Returns the long value of this literal.
|
short |
shortValue()
Returns the short value of this literal.
|
booleanValue, calendarValue, equals, getDatatype, getLabel, getLanguage, hashCode, setDatatype, setLabel, setLanguage, stringValue, toString
public DecimalLiteralImpl(BigDecimal value)
public DecimalLiteralImpl(BigDecimal value, URI datatype)
public byte byteValue()
Literal
byteValue
in interface Literal
byteValue
in class LiteralImpl
public short shortValue()
Literal
shortValue
in interface Literal
shortValue
in class LiteralImpl
public int intValue()
Literal
intValue
in interface Literal
intValue
in class LiteralImpl
public long longValue()
Literal
longValue
in interface Literal
longValue
in class LiteralImpl
public float floatValue()
Literal
floatValue
in interface Literal
floatValue
in class LiteralImpl
public double doubleValue()
Literal
doubleValue
in interface Literal
doubleValue
in class LiteralImpl
public BigInteger integerValue()
Literal
integerValue
in interface Literal
integerValue
in class LiteralImpl
public BigDecimal decimalValue()
Literal
decimalValue
in interface Literal
decimalValue
in class LiteralImpl
Copyright © 2001-2016 Aduna. All Rights Reserved.