-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to give a nice shape to be extended for future requirements (#…
…24) [#19] DefaultLookUp support multiple types of source to resolve the value and removed the randomLookup. [#20] Refactor to remove dependency on Fyodor and replaced by Supplier. [#21] Changes in the DSL to have separate methods for override based on the type. updating README
- Loading branch information
Cael
authored
Mar 20, 2019
1 parent
f4489b1
commit 5abecd0
Showing
25 changed files
with
443 additions
and
288 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
21 changes: 9 additions & 12 deletions
21
src/main/java/uk/co/caeldev/builder4test/DefaultLookUp.java
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
4 changes: 2 additions & 2 deletions
4
src/main/java/uk/co/caeldev/builder4test/ElementListBuilder.java
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
23 changes: 12 additions & 11 deletions
23
src/main/java/uk/co/caeldev/builder4test/FixedSizeListBuilder.java
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
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,8 +1,11 @@ | ||
package uk.co.caeldev.builder4test; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public interface OverrideField<L> { | ||
|
||
<U> L override(Field<U> field, Creator<U> creator); | ||
<U> L override(Field<U> field, U value); | ||
<U> L override(Field<U> field, Supplier<U> supplier); | ||
<U> L overrideValue(Field<U> field, U value); | ||
|
||
} |
Oops, something went wrong.