Code example for Set

Methods: size

0
  public ChoosableSet(int initialSize) {
    ids = new ConcurrentHashSet<>(initialSize);
  } 
 
  public int size() { 
    return ids.size();
  } 
 
  public boolean isInitialised() { 
    return initialised;
  } 
 
  public void setInitialised() { 
    this.initialised = true;
  } 
 
  public void add(T elem) {
    ids.add(elem);
  } 
 
  public void remove(T elem) {