public class WikidataValue extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
WikidataValue.Type |
| Constructor and Description |
|---|
WikidataValue(String typeName,
Object value,
com.google.gson.JsonElement jsonValue) |
WikidataValue(WikidataValue.Type type,
Object value,
com.google.gson.JsonElement jsonValue) |
| Modifier and Type | Method and Description |
|---|---|
static WikidataValue |
forInt(int value) |
static WikidataValue |
forItem(int itemId) |
static WikidataValue |
forString(String s) |
int |
getIntValue() |
int |
getItemValue() |
com.google.gson.JsonElement |
getJsonValue() |
String |
getStringValue() |
Date |
getTimeValue() |
WikidataValue.Type |
getType() |
String |
getTypeName() |
Object |
getValue() |
String |
toString() |
public WikidataValue(String typeName, Object value, com.google.gson.JsonElement jsonValue)
public WikidataValue(WikidataValue.Type type, Object value, com.google.gson.JsonElement jsonValue)
public static WikidataValue forItem(int itemId)
public static WikidataValue forInt(int value)
public static WikidataValue forString(String s)
public WikidataValue.Type getType()
public Object getValue()
public String getTypeName()
public Date getTimeValue()
public String getStringValue()
public int getItemValue()
public int getIntValue()
public com.google.gson.JsonElement getJsonValue()
Copyright © 2014. All rights reserved.