- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
@Override public String toString() { return "Configurations{" + "validations=" + validations + ", configurations=" + getConfigurations()+ '}'; } }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Configurations that = (Configurations) o; if (validations != null ? !validations.equals(that.validations) : that.validations != null) return false; return getConfigurations() != null ? getConfigurations().equals(that.getConfigurations()) : that.getConfigurations() == null; }
@Override public int hashCode() { int result = validations != null ? validations.hashCode() : 0; result = 31 * result + (getConfigurations() != null ? getConfigurations().hashCode() : 0); return result; }
public void deleteGlobalConfig() { getConfigurations().remove(ConfigurationType.GLOBAL.getTypeName()); }
public Map<String, Object> getGlobalConfig(boolean emptyMapOnNonExistent) { return (Map<String, Object>) getConfigurations().getOrDefault(ConfigurationType.GLOBAL.getTypeName(), emptyMapOnNonExistent?new HashMap():null); }
public void updateGlobalConfig(Map<String, Object> globalConfig) { if(globalConfig != null) { getConfigurations().put(ConfigurationType.GLOBAL.getTypeName(), globalConfig); validations = FieldValidator.readValidations(getGlobalConfig()); } }