Package org.eclipse.rdf4j.model.impl
Class IntegerLiteral
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractLiteral
-
- org.eclipse.rdf4j.model.impl.SimpleLiteral
-
- org.eclipse.rdf4j.model.impl.IntegerLiteral
-
- All Implemented Interfaces:
Serializable,Literal,Value
public class IntegerLiteral extends SimpleLiteral
An extension ofSimpleLiteralthat stores an integer value using aBigIntegerobject.- Author:
- Arjohn Kampman
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntegerLiteral(BigInteger value)Creates an xsd:integer literal with the specified value.protectedIntegerLiteral(BigInteger value, CoreDatatype datatype)protectedIntegerLiteral(BigInteger value, IRI datatype)Creates a literal with the specified value and datatype.protectedIntegerLiteral(BigInteger value, XSD.Datatype datatype)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue()BigDecimaldecimalValue()doubledoubleValue()floatfloatValue()BigIntegerintegerValue()intintValue()longlongValue()shortshortValue()-
Methods inherited from class org.eclipse.rdf4j.model.impl.SimpleLiteral
booleanValue, calendarValue, equals, getCoreDatatype, getDatatype, getLabel, getLanguage, getXsdDatatype, hashCode, setDatatype, setDatatype, setDatatype, setDatatype, setLabel, setLanguage, stringValue, toString
-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral
temporalAccessorValue, temporalAmountValue
-
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
-
-
-
-
Constructor Detail
-
IntegerLiteral
protected IntegerLiteral(BigInteger value)
Creates an xsd:integer literal with the specified value.
-
IntegerLiteral
protected IntegerLiteral(BigInteger value, IRI datatype)
Creates a literal with the specified value and datatype.
-
IntegerLiteral
@Deprecated(since="4.0.0", forRemoval=true) protected IntegerLiteral(BigInteger value, XSD.Datatype datatype)
Deprecated, for removal: This API element is subject to removal in a future version.
-
IntegerLiteral
protected IntegerLiteral(BigInteger value, CoreDatatype datatype)
-
-
Method Detail
-
byteValue
public byte byteValue()
- Specified by:
byteValuein interfaceLiteral- Overrides:
byteValuein classSimpleLiteral
-
shortValue
public short shortValue()
- Specified by:
shortValuein interfaceLiteral- Overrides:
shortValuein classSimpleLiteral
-
intValue
public int intValue()
- Specified by:
intValuein interfaceLiteral- Overrides:
intValuein classSimpleLiteral
-
longValue
public long longValue()
- Specified by:
longValuein interfaceLiteral- Overrides:
longValuein classSimpleLiteral
-
floatValue
public float floatValue()
- Specified by:
floatValuein interfaceLiteral- Overrides:
floatValuein classSimpleLiteral
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein interfaceLiteral- Overrides:
doubleValuein classSimpleLiteral
-
integerValue
public BigInteger integerValue()
- Specified by:
integerValuein interfaceLiteral- Overrides:
integerValuein classSimpleLiteral
-
decimalValue
public BigDecimal decimalValue()
- Specified by:
decimalValuein interfaceLiteral- Overrides:
decimalValuein classSimpleLiteral
-
-