public class IntegerLiteral extends SimpleLiteral
SimpleLiteral
that stores an integer value using a BigInteger
object.Modifier | Constructor and Description |
---|---|
protected |
IntegerLiteral(BigInteger value)
Creates an xsd:integer literal with the specified value.
|
protected |
IntegerLiteral(BigInteger value,
IRI datatype)
Creates a literal with the specified value and datatype.
|
protected |
IntegerLiteral(BigInteger value,
XSD.Datatype 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, getXsdDatatype, hashCode, setDatatype, setDatatype, setLabel, setLanguage, stringValue, toString
temporalAccessorValue, temporalAmountValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isBNode, isIRI, isResource, isTriple
protected IntegerLiteral(BigInteger value)
protected IntegerLiteral(BigInteger value, IRI datatype)
protected IntegerLiteral(BigInteger value, XSD.Datatype datatype)
public byte byteValue()
Literal
byteValue
in interface Literal
byteValue
in class SimpleLiteral
public short shortValue()
Literal
shortValue
in interface Literal
shortValue
in class SimpleLiteral
public int intValue()
Literal
intValue
in interface Literal
intValue
in class SimpleLiteral
public long longValue()
Literal
longValue
in interface Literal
longValue
in class SimpleLiteral
public float floatValue()
Literal
floatValue
in interface Literal
floatValue
in class SimpleLiteral
public double doubleValue()
Literal
doubleValue
in interface Literal
doubleValue
in class SimpleLiteral
public BigInteger integerValue()
Literal
integerValue
in interface Literal
integerValue
in class SimpleLiteral
public BigDecimal decimalValue()
Literal
decimalValue
in interface Literal
decimalValue
in class SimpleLiteral
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.