Java Runtime 3.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
alfa.rt.Builder Interface Reference

Inherited by alfa.rt.NoOpBuilder, and alfa.rt.UntaggedUnionBuilder.

Public Member Functions

< 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)
 

Detailed Description

Base interface for all Builder implementations in Alfa objects

Member Function Documentation

◆ 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
fieldNameField 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
fieldNameField name of the field being modified
valValue to assign to the field. AlfaRuntimeException may be thrown if values not compatible.

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