Code example for Set

Methods: add

0
  public void setInitialised() { 
    this.initialised = true;
  } 
 
  public void add(T elem) {
    ids.add(elem);
  } 
 
  public void remove(T elem) {
    ids.remove(elem);
  } 
 
  public void merge(ChoosableSet<T> toMerge) {
    ids.addAll(toMerge.ids);
  } 
 
  public boolean isEmpty() { 
    return ids.isEmpty();
  } 
 
  @Override