Class FailureItemsBuilder


  • public final class FailureItemsBuilder
    extends java.lang.Object
    A builder for a list of failure items.

    This provides a builder to create FailureItems.

    • 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​(java.util.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