|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.LiteralImpl
org.openrdf.model.impl.DecimalLiteralImpl
public class DecimalLiteralImpl
An extension of LiteralImpl that stores an integer value using a
BigDecimal object.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.openrdf.model.impl.LiteralImpl |
|---|
booleanValue, calendarValue, equals, getDatatype, getLabel, getLanguage, hashCode, stringValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DecimalLiteralImpl(BigDecimal value)
public DecimalLiteralImpl(BigDecimal value,
URI datatype)
| Method Detail |
|---|
public byte byteValue()
Literal
byteValue in interface LiteralbyteValue in class LiteralImplpublic short shortValue()
Literal
shortValue in interface LiteralshortValue in class LiteralImplpublic int intValue()
Literal
intValue in interface LiteralintValue in class LiteralImplpublic long longValue()
Literal
longValue in interface LiterallongValue in class LiteralImplpublic float floatValue()
Literal
floatValue in interface LiteralfloatValue in class LiteralImplpublic double doubleValue()
Literal
doubleValue in interface LiteraldoubleValue in class LiteralImplpublic BigInteger integerValue()
Literal
integerValue in interface LiteralintegerValue in class LiteralImplpublic BigDecimal decimalValue()
Literal
decimalValue in interface LiteraldecimalValue in class LiteralImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||