| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| package com.github.fge.jsonpatch.diff; | ||
|
|
||
| /** | ||
| * Created by AMA on 24/09/2020. | ||
| */ | ||
| public class DiffOptions { | ||
|
|
||
| public static final boolean DIFF_DOESNT_REQUIRE_SOURCE = false; | ||
|
|
||
| final boolean diffDoesntRequireSource; | ||
|
|
||
| public static final DiffOptions DEFAULT_OPTIONS = new DiffOptions(DIFF_DOESNT_REQUIRE_SOURCE); | ||
|
|
||
| private DiffOptions(boolean diffDoesntRequireSource) { | ||
| this.diffDoesntRequireSource = diffDoesntRequireSource; | ||
| } | ||
|
|
||
| public boolean isDiffDoesntRequireSource() { | ||
| return diffDoesntRequireSource; | ||
| } | ||
|
|
||
| public static class Builder { | ||
| private boolean diffDoesntRequireSource = DIFF_DOESNT_REQUIRE_SOURCE; | ||
|
|
||
| public Builder diffDoesntRequireSource() { | ||
| diffDoesntRequireSource = true; | ||
| return this; | ||
| } | ||
|
|
||
| public Builder diffRequireSource() { | ||
| diffDoesntRequireSource = false; | ||
| return this; | ||
| } | ||
|
|
||
| public DiffOptions build(){ | ||
| return new DiffOptions(diffDoesntRequireSource); | ||
| } | ||
|
|
||
| } | ||
| } |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.