예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }