Class FailureItemsBuilder
- java.lang.Object
-
- com.opengamma.strata.collect.result.FailureItemsBuilder
-
public final class FailureItemsBuilder extends Object
A builder for a list of failure items.This provides a builder to create
FailureItems
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FailureItemsBuilder
addAllFailures(List<FailureItem> failures)
Adds a list of failures to the list.FailureItemsBuilder
addFailure(FailureItem failure)
Adds a failure to the list.FailureItems
build()
Builds the resulting instance.
-
-
-
Method Detail
-
addFailure
public FailureItemsBuilder addFailure(FailureItem failure)
Adds a failure to the list.- Parameters:
failure
- the failure to add- Returns:
- this, for chaining
-
addAllFailures
public FailureItemsBuilder addAllFailures(List<FailureItem> failures)
Adds a list of failures to the list.- Parameters:
failures
- the failures to add- Returns:
- this, for chaining
-
build
public FailureItems build()
Builds the resulting instance.- Returns:
- the result
-
-