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
47 lines
1.3 KiB
Java
47 lines
1.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package de.maxhenkel.voicechat.org.json;
|
|
|
|
public class ParserConfiguration {
|
|
public static final int UNDEFINED_MAXIMUM_NESTING_DEPTH = -1;
|
|
public static final int DEFAULT_MAXIMUM_NESTING_DEPTH = 512;
|
|
protected boolean keepStrings;
|
|
protected int maxNestingDepth;
|
|
|
|
public ParserConfiguration() {
|
|
this.keepStrings = false;
|
|
this.maxNestingDepth = 512;
|
|
}
|
|
|
|
protected ParserConfiguration(boolean keepStrings, int maxNestingDepth) {
|
|
this.keepStrings = keepStrings;
|
|
this.maxNestingDepth = maxNestingDepth;
|
|
}
|
|
|
|
protected ParserConfiguration clone() {
|
|
return new ParserConfiguration(this.keepStrings, this.maxNestingDepth);
|
|
}
|
|
|
|
public boolean isKeepStrings() {
|
|
return this.keepStrings;
|
|
}
|
|
|
|
public <T extends ParserConfiguration> T withKeepStrings(boolean newVal) {
|
|
ParserConfiguration newConfig = this.clone();
|
|
newConfig.keepStrings = newVal;
|
|
return (T)newConfig;
|
|
}
|
|
|
|
public int getMaxNestingDepth() {
|
|
return this.maxNestingDepth;
|
|
}
|
|
|
|
public <T extends ParserConfiguration> T withMaxNestingDepth(int maxNestingDepth) {
|
|
ParserConfiguration newConfig = this.clone();
|
|
newConfig.maxNestingDepth = maxNestingDepth > -1 ? maxNestingDepth : -1;
|
|
return (T)newConfig;
|
|
}
|
|
}
|
|
|