public class BranchedSuggestedFixes extends Object
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.
BranchedSuggestedFixes a = BranchedSuggestedFixes.builder()
.startWith(A)
.then()
.addOption(B)
.addOption(C)
.then()
.addOption(D)
.addOption(E)
.build();
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.Modifier and Type | Class and Description |
---|---|
static class |
BranchedSuggestedFixes.Builder
Builder class for BranchedSuggestedFixes
|
Modifier and Type | Method and Description |
---|---|
static BranchedSuggestedFixes.Builder |
builder() |
com.google.common.collect.ImmutableList<SuggestedFix> |
getFixes() |
public com.google.common.collect.ImmutableList<SuggestedFix> getFixes()
public static BranchedSuggestedFixes.Builder builder()
Copyright © 2021 Google LLC. All rights reserved.