Inherited by alfa.rt.NoOpBuilder, and alfa.rt.UntaggedUnionBuilder.
|
< T extends AlfaObject > T | build () |
|
void | modify (String fieldName, Object val) |
|
Object | get (String fieldName) |
|
TypeDescriptor | descriptor () |
|
default< T extends AlfaObject > void | applyStreamingAsserts (Stream< T > records, java.util.Set< java.lang.String > excludeAsserts) |
|
Base interface for all Builder implementations in Alfa objects
◆ build()
< T extends AlfaObject > T alfa.rt.Builder.build |
( |
| ) |
|
Construct an immutable instance of the object represented by the data in this newBuilder
- Parameters
-
<T> | Class representing the target value |
- Returns
- An immutable object
◆ get()
Object alfa.rt.Builder.get |
( |
String | fieldName | ) |
|
Generic method to get current value of a builder
- Parameters
-
fieldName | Field name of the field being accessed |
- Returns
- Field value
◆ modify()
void alfa.rt.Builder.modify |
( |
String | fieldName, |
|
|
Object | val ) |
Generic method to assign a value to the newBuilder's field
- Parameters
-
fieldName | Field name of the field being modified |
val | Value to assign to the field. AlfaRuntimeException may be thrown if values not compatible. |
The documentation for this interface was generated from the following file:
- src/main/java/alfa/rt/Builder.java