Package rife.json
Interface JsonObjectAction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface that captures an action to execute
on a
JsonObject instance.
There's no need to implement this interface directly, it's intended
to be provided as an inline lambda to
JsonObject.object(String, JsonObjectAction) and
JsonArray.object(JsonObjectAction), which construct a nested
JSON object, hand it to the action to populate, and attach it to
the enclosing structure.
- Since:
- 1.10
-
Method Summary
Modifier and TypeMethodDescriptionvoiduse(JsonObject o) Executes the action on the specifiedJsonObjectinstance.
-
Method Details
-
use
Executes the action on the specifiedJsonObjectinstance.- Parameters:
o- theJsonObjectinstance on which to execute the action- Since:
- 1.10
-