-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,45 @@ | ||
package poussecafe.source; | ||
|
||
import lombok.Builder; | ||
import lombok.Value; | ||
import lombok.experimental.Accessors; | ||
import java.util.Objects; | ||
|
||
import poussecafe.source.analysis.ClassName; | ||
|
||
@Builder | ||
@Value | ||
@Accessors(fluent = true) | ||
public class Conflict { | ||
|
||
public ClassName outerModuleClass() { | ||
return outerModuleClass; | ||
} | ||
|
||
private ClassName outerModuleClass; | ||
|
||
|
||
public ClassName innerModuleClass() { | ||
return innerModuleClass; | ||
} | ||
|
||
private ClassName innerModuleClass; | ||
|
||
public static Builder builder() { | ||
return new Builder(); | ||
} | ||
|
||
public static class Builder { | ||
|
||
private Conflict conflict = new Conflict(); | ||
|
||
public Conflict build() { | ||
Objects.requireNonNull(conflict.outerModuleClass); | ||
Objects.requireNonNull(conflict.innerModuleClass); | ||
return conflict; | ||
} | ||
|
||
public Builder outerModuleClass(ClassName outerModuleClass) { | ||
conflict.outerModuleClass = outerModuleClass; | ||
return this; | ||
} | ||
|
||
public Builder innerModuleClass(ClassName innerModuleClass) { | ||
conflict.innerModuleClass = innerModuleClass; | ||
return this; | ||
} | ||
} | ||
} |