if (oldSize < size) { fireIntervalAdded(this, oldSize, size - 1); } else if (oldSize > size) { this.fireIntervalRemoved(this, size, oldSize - 1); }
  public void setSize(int size)  {    elements.setSize(size);  }