public class KiWiDoubleLiteral extends KiWiStringLiteral
Modifier and Type | Field and Description |
---|---|
protected Double |
doubleContent
Content as double value (if appropriate); for efficient querying
|
content
Modifier | Constructor and Description |
---|---|
|
KiWiDoubleLiteral() |
protected |
KiWiDoubleLiteral(Date created) |
|
KiWiDoubleLiteral(Double content,
KiWiUriResource type) |
|
KiWiDoubleLiteral(Double content,
KiWiUriResource type,
Date created) |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the double value of this literal.
|
float |
floatValue()
Returns the float value of this literal.
|
Double |
getDoubleContent() |
void |
setDoubleContent(Double doubleContent) |
getContent, setContent
booleanValue, byteValue, calendarValue, decimalValue, equals, getDatatype, getLabel, getLanguage, getLocale, getType, hashCode, integerValue, intValue, isAnonymousResource, isLiteral, isUriResource, longValue, setLocale, setType, shortValue, stringValue, toString
getCreated, getId, setCreated, setId
protected Double doubleContent
public KiWiDoubleLiteral()
protected KiWiDoubleLiteral(Date created)
public KiWiDoubleLiteral(Double content, KiWiUriResource type)
public KiWiDoubleLiteral(Double content, KiWiUriResource type, Date created)
public Double getDoubleContent()
public void setDoubleContent(Double doubleContent)
public float floatValue()
floatValue
in interface org.openrdf.model.Literal
floatValue
in class KiWiLiteral
NumberFormatException
- If the literal's label cannot be represented by a float.public double doubleValue()
doubleValue
in interface org.openrdf.model.Literal
doubleValue
in class KiWiLiteral
NumberFormatException
- If the literal's label cannot be represented by a double.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.