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
- All Implemented Interfaces:
Serializable
,Literal
,Value
- Enclosing class:
AbstractLiteral
-
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
FieldsFields inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral.NumberLiteral
value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the decimal value of this literal.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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
DecimalLiteral
DecimalLiteral(BigDecimal value)
-
-
Method Details
-
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
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.
-