public class KiWiIntLiteral extends KiWiDoubleLiteral
doubleContent
content
Constructor and Description |
---|
KiWiIntLiteral() |
KiWiIntLiteral(Long content,
KiWiUriResource type) |
KiWiIntLiteral(Long content,
KiWiUriResource type,
Date created) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the byte value of this literal.
|
Long |
getIntContent() |
int |
intValue()
Returns the int value of this literal.
|
long |
longValue()
Returns the long value of this literal.
|
void |
setIntContent(Long intContent) |
short |
shortValue()
Returns the short value of this literal.
|
doubleValue, floatValue, getDoubleContent, setDoubleContent
getContent, setContent
booleanValue, calendarValue, decimalValue, equals, getDatatype, getLabel, getLanguage, getLocale, getType, hashCode, integerValue, isAnonymousResource, isLiteral, isUriResource, setLocale, setType, stringValue, toString
getCreated, getId, setCreated, setId
public KiWiIntLiteral()
public KiWiIntLiteral(Long content, KiWiUriResource type)
public KiWiIntLiteral(Long content, KiWiUriResource type, Date created)
public Long getIntContent()
public void setIntContent(Long intContent)
public byte byteValue()
byteValue
in interface org.openrdf.model.Literal
byteValue
in class KiWiLiteral
NumberFormatException
- If the literal cannot be represented by a byte.public short shortValue()
shortValue
in interface org.openrdf.model.Literal
shortValue
in class KiWiLiteral
NumberFormatException
- If the literal's label cannot be represented by a short.public int intValue()
intValue
in interface org.openrdf.model.Literal
intValue
in class KiWiLiteral
NumberFormatException
- If the literal's label cannot be represented by a int.public long longValue()
longValue
in interface org.openrdf.model.Literal
longValue
in class KiWiLiteral
NumberFormatException
- If the literal's label cannot be represented by to a long.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.