|
java.util.Map< String, Object > | _data () |
|
default void | _set (String field, Object val) |
|
default< T > T | _get (String field, Supplier< T > defaultValue) |
|
default void | _addToList (String field, Object o) |
|
default void | _addAllToList (String field, List all) |
|
default void | _addToSet (String field, Object o) |
|
default void | _addAllToSet (String field, Set all) |
|
default void | _put (String field, int k, int v) |
|
default void | _putAll (String field, Map all) |
|
A mutable value is rarely used, likely temporary. Field values are held in a map and created on demand, while the generated MutableImpl classes present JavaBean style interface.
This enables nested objects to be accessed with getA().getB().getC() without fear of null pointer, as the value will be created on demand if required.