Module org.monospark.remix
Package org.monospark.remix
Interface RecordBuilder.ComponentContext<R extends Record,T>
- Enclosing interface:
- RecordBuilder<R extends Record>
public static interface RecordBuilder.ComponentContext<R extends Record,T>
-
Method Summary
Modifier and Type Method Description RecordBuilder<R>to(Supplier<T> value)Supplies the value of a given record component.
-
Method Details
-
to
Supplies the value of a given record component.- Parameters:
value- a supplier that supplies the value whenever a new instance is built- Throws:
NullPointerException- if the argument is nullRecordResolveException- if the given record component can not be resolved. This happens when the given function is not a record component accessor reference of the record class of this builder.
-