Package org.eclipse.rdf4j.model.base
Class AbstractLiteral.DecimalLiteral
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractLiteral
-
- org.eclipse.rdf4j.model.base.AbstractLiteral.NumberLiteral
-
- org.eclipse.rdf4j.model.base.AbstractLiteral.DecimalLiteral
-
- Enclosing class:
- AbstractLiteral
static class AbstractLiteral.DecimalLiteral extends AbstractLiteral.NumberLiteral
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral
AbstractLiteral.BooleanLiteral, AbstractLiteral.CalendarLiteral, AbstractLiteral.DecimalLiteral, AbstractLiteral.IntegerLiteral, AbstractLiteral.NumberLiteral, AbstractLiteral.TaggedLiteral, AbstractLiteral.TemporalAccessorLiteral, AbstractLiteral.TemporalAmountLiteral, AbstractLiteral.TypedLiteral
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral.NumberLiteral
value
-
-
Constructor Summary
Constructors Constructor Description DecimalLiteral(java.math.BigDecimal value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
decimalValue()
Returns the decimal value of this literal.java.math.BigInteger
integerValue()
Returns the integer value of this literal.-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral.NumberLiteral
byteValue, doubleValue, floatValue, getCoreDatatype, getDatatype, getLabel, getLanguage, intValue, longValue, parseDouble, parseFloat, shortValue
-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral
booleanValue, calendarValue, equals, hashCode, reserved, reserved, stringValue, temporalAccessorValue, temporalAmountValue, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.model.Value
isBNode, isIRI, isResource, isTriple
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
integerValue
public java.math.BigInteger integerValue()
Description copied from interface:Literal
Returns the integer value of this literal.- Specified by:
integerValue
in interfaceLiteral
- Overrides:
integerValue
in classAbstractLiteral
- Returns:
- The integer value of the literal.
-
decimalValue
public java.math.BigDecimal decimalValue()
Description copied from interface:Literal
Returns the decimal value of this literal.- Specified by:
decimalValue
in interfaceLiteral
- Overrides:
decimalValue
in classAbstractLiteral
- Returns:
- The decimal value of the literal.
-
-