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 longserialVersionUID-
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.BigDecimaldecimalValue()Returns the decimal value of this literal.java.math.BigIntegerintegerValue()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:LiteralReturns the integer value of this literal.- Specified by:
integerValuein interfaceLiteral- Overrides:
integerValuein classAbstractLiteral- Returns:
- The integer value of the literal.
-
decimalValue
public java.math.BigDecimal decimalValue()
Description copied from interface:LiteralReturns the decimal value of this literal.- Specified by:
decimalValuein interfaceLiteral- Overrides:
decimalValuein classAbstractLiteral- Returns:
- The decimal value of the literal.
-
-