public class BehavedJsonElement extends Object
Modifier and Type | Method and Description |
---|---|
static BehavedJsonElement |
enrich(com.google.gson.JsonElement element) |
com.google.gson.JsonElement |
get() |
List<BehavedJsonElement> |
getAsArray() |
Boolean |
getAsBoolean() |
Double |
getAsDouble() |
Integer |
getAsInt() |
Long |
getAsLong() |
List<org.apache.commons.lang3.tuple.Pair<String,BehavedJsonElement>> |
getAsMap() |
Number |
getAsNumber() |
Integer |
getAsRoundedInt() |
String |
getAsString() |
String |
getPath() |
boolean |
isNullOrNotFound() |
boolean |
isPathNotFound() |
BehavedJsonElement |
path(String path)
Returns an object that returns null instead of exception when its methods are called (whether JsonPrimitive or others)
|
String |
toString() |
public static BehavedJsonElement enrich(@Nullable com.google.gson.JsonElement element)
public BehavedJsonElement path(String path)
public boolean isPathNotFound()
public String getPath()
public com.google.gson.JsonElement get()
public Integer getAsInt()
public Integer getAsRoundedInt()
public Number getAsNumber()
public Double getAsDouble()
public String getAsString()
public Boolean getAsBoolean()
public Long getAsLong()
public boolean isNullOrNotFound()
public List<BehavedJsonElement> getAsArray()
public List<org.apache.commons.lang3.tuple.Pair<String,BehavedJsonElement>> getAsMap()
Copyright © 2020 Play SQL. All rights reserved.