/** * removes a setting using ArrayList.remove * * @param s setting to remove */ @SuppressWarnings({"unchecked", "rawtypes"}) public void remove(Setting s) { Settings.remove(s); s.parent = null; }
/** * add a setting to be saved. * * @param s setting to add - sets s.parent as well, don't add a setting to more than one * modsettings */ @SuppressWarnings({"unchecked", "rawtypes"}) public void append(Setting s) { Settings.add(s); s.parent = this; }