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, shortValueMethods inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral
booleanValue, calendarValue, equals, hashCode, reserved, reserved, stringValue, temporalAccessorValue, temporalAmountValue, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:LiteralReturns the integer value of this literal.- Specified by:
integerValuein interfaceLiteral- Overrides:
integerValuein classAbstractLiteral- Returns:
- The integer value of the literal.
-
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.
-