public class BranchedSuggestedFixes extends Object
Helper class for accumulating a branching tree of alternative fixes designed to help build as set of potential fixes with different options in them.
Consider building a list of fixes from a set of operations A followed by B or C then D or E. The resulting list should be ABD, ACD, ABE, ACE.
This class assumes that in order to build a valid set of fixes you must make some progress at each branch. So two calls to branch with no merges in between will result in an empty list of fixes at the end.
BranchedSuggestedFixes a = BranchedSuggestedFixes.builder() .startWith(A) .then() .addOption(B) .addOption(C) .then() .addOption(D) .addOption(E) .build();
- firstname.lastname@example.org (Andrew Rice)
Nested Class Summary
Nested Classes Modifier and Type Class Description
static classBuilder class for BranchedSuggestedFixes