public class JsonValue extends Object
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
getAsArray()
Returns the value as array.
|
Boolean |
getAsBoolean()
Returns the value as boolean.
|
Float |
getAsFloat()
Returns the value as float.
|
Integer |
getAsInteger()
Returns the value as integer.
|
Number |
getAsNumber()
Returns the value as number.
|
JsonObject |
getAsObject()
Returns the value as entity.
|
Object |
getAsRaw()
Returns the value.
|
String |
getAsString()
Returns the value as string.
|
boolean |
is(Type type)
Returns whether the value is instance of the given type.
|
boolean |
isArray()
Returns whether the value is instance of an array.
|
boolean |
isBoolean()
Returns whether the property is a boolean.
|
boolean |
isNumber()
Returns whether the property is a number.
|
boolean |
isObject()
Returns whether the property is instance of an entity.
|
Object |
toJsonValue() |
public JsonValue(Object value)
public Object toJsonValue()
public boolean is(Type type)
type - the typetrue property is instance of typefalse property is not an instance of typepublic boolean isArray()
true property is an arrayfalse property is not an arraygetAsArray()public boolean isObject()
true property is an entityfalse property is not an entity#getAsEntitypublic boolean isBoolean()
true property is a booleanfalse property is not a booleanpublic boolean isNumber()
true property is a numberfalse property is not a numberpublic Object getAsRaw()
public JsonArray getAsArray()
public String getAsString()
public Boolean getAsBoolean()
public Integer getAsInteger()
public Float getAsFloat()
public Number getAsNumber()
public JsonObject getAsObject()
Copyright © 2013. All Rights Reserved.