Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
66 lines
1.9 KiB
Java
66 lines
1.9 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package de.maxhenkel.voicechat.org.json;
|
|
|
|
import de.maxhenkel.voicechat.org.json.ParserConfiguration;
|
|
|
|
public class JSONParserConfiguration
|
|
extends ParserConfiguration {
|
|
private boolean overwriteDuplicateKey = false;
|
|
private boolean useNativeNulls;
|
|
private boolean strictMode;
|
|
|
|
@Override
|
|
protected JSONParserConfiguration clone() {
|
|
JSONParserConfiguration clone = new JSONParserConfiguration();
|
|
clone.overwriteDuplicateKey = this.overwriteDuplicateKey;
|
|
clone.strictMode = this.strictMode;
|
|
clone.maxNestingDepth = this.maxNestingDepth;
|
|
clone.keepStrings = this.keepStrings;
|
|
clone.useNativeNulls = this.useNativeNulls;
|
|
return clone;
|
|
}
|
|
|
|
public JSONParserConfiguration withMaxNestingDepth(int maxNestingDepth) {
|
|
JSONParserConfiguration clone = this.clone();
|
|
clone.maxNestingDepth = maxNestingDepth;
|
|
return clone;
|
|
}
|
|
|
|
public JSONParserConfiguration withOverwriteDuplicateKey(boolean overwriteDuplicateKey) {
|
|
JSONParserConfiguration clone = this.clone();
|
|
clone.overwriteDuplicateKey = overwriteDuplicateKey;
|
|
return clone;
|
|
}
|
|
|
|
public JSONParserConfiguration withUseNativeNulls(boolean useNativeNulls) {
|
|
JSONParserConfiguration clone = this.clone();
|
|
clone.useNativeNulls = useNativeNulls;
|
|
return clone;
|
|
}
|
|
|
|
public JSONParserConfiguration withStrictMode() {
|
|
return this.withStrictMode(true);
|
|
}
|
|
|
|
public JSONParserConfiguration withStrictMode(boolean mode) {
|
|
JSONParserConfiguration clone = this.clone();
|
|
clone.strictMode = mode;
|
|
return clone;
|
|
}
|
|
|
|
public boolean isOverwriteDuplicateKey() {
|
|
return this.overwriteDuplicateKey;
|
|
}
|
|
|
|
public boolean isUseNativeNulls() {
|
|
return this.useNativeNulls;
|
|
}
|
|
|
|
public boolean isStrictMode() {
|
|
return this.strictMode;
|
|
}
|
|
}
|
|
|