Java Runtime 3.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
com.schemarise.alfa.runtime.AlfaMutable Interface Reference

Public Member Functions

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)
 

Detailed Description

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.


The documentation for this interface was generated from the following file: