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

Inherited by com.schemarise.alfa.runtime.NoOpBuilder, and com.schemarise.alfa.runtime.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 com.schemarise.alfa.runtime.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 com.schemarise.alfa.runtime.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 com.schemarise.alfa.runtime.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: