class LightWeightHashSet implements Collection<T> {

  public List<T> pollAll() {
    List<T> retList = new ArrayList<>(size);
    for (LinkedElement<T> entry : entries) {
      LinkedElement<T> current = entry;
      while (current != null) {
        retList.add(current.element);
        current = current.next;
      }
    }
    this.clear();
    return retList;
  }

  @SuppressWarnings("unchecked") public  LightWeightHashSet(int initCapacity, float maxLoadFactor,
      float minLoadFactor);
  public  LightWeightHashSet();
  public  LightWeightHashSet(int minCapacity);

}