-
Method Summary
void
Add the given JsonElement to the array this accessor points to for the given root,
unless it is already present.
-
Method Details
-
-
addElementIfAbsent
void addElementIfAbsent(com.google.gson.JsonObject root,
com.google.gson.JsonElement newValue)
Add the given JsonElement to the array this accessor points to for the given root,
unless it is already present.
- Parameters:
root - The root to be accessed.
newValue - The value to add.
- Throws:
UnexpectedJsonElementTypeException - If an element in the path has unexpected type, preventing
write access to the array this accessor points to.