class LightWeightLinkedSet extends LightWeightHashSet<T> {

  @Override
  public List<T> pollN(int n) {
    if (n >= size) {
      // if we need to remove all elements then do fast polling
      return pollAll();
    }
    List<T> retList = new ArrayList<>(n);
    while (n-- > 0 && head != null) {
      T curr = head.element;
      this.removeElem(curr);
      retList.add(curr);
    }
    shrinkIfNecessary();
    return retList;
  }

  public  LightWeightLinkedSet(int initCapacity, float maxLoadFactor,
      float minLoadFactor);
  public  LightWeightLinkedSet();

}