diff --git a/DataExtension-API-Builders.md b/DataExtension-API-Builders.md index 2d4c5c3..12943f8 100644 --- a/DataExtension-API-Builders.md +++ b/DataExtension-API-Builders.md @@ -46,7 +46,7 @@ builder.addValue(Boolean.class, builder.valueBuilder("...").buildBooleanProvidi builder.addValue(Long.class, builder.valueBuilder("...").buildNumber(1234L)); builder.addValue(Long.class, builder.valueBuilder("...").buildNumber(() -> 1234L)); builder.addValue(Double.class, builder.valueBuilder("...").buildDouble(500.52)); -builder.addValue(Double.class, builder.valueBuilder("...").buildDouble(() ->500.52)); +builder.addValue(Double.class, builder.valueBuilder("...").buildDouble(() -> 500.52)); builder.addValue(Double.class, builder.valueBuilder("...").buildPercentage(0.52)); builder.addValue(Double.class, builder.valueBuilder("...").buildPercentage(() -> 0.52)); builder.addValue(String.class, builder.valueBuilder("...").buildString("Example")); @@ -55,6 +55,8 @@ builder.addValue(String[].class, builder.valueBuilder("...").buildGroup(new Stri builder.addValue(String[].class, builder.valueBuilder("...").buildGroup(() -> new String[]{"Admin", "Moderator"})); builder.addValue(Table.class, builder.valueBuilder("...").buildTable(Table.builder()...build(), Color.BLUE)); builder.addValue(Table.class, builder.valueBuilder("...").buildTable(() -> Table.builder()...build(), Color.BLUE)); + +return builder; ``` The lambda methods can be used for method references, conditional values (eg returning null sometimes) and for throwing `NotReadyException` for a specific value.