@Override
  public void clear() {
    if (attributeData != null) {
      while (size > 0) {
        size--;
        attributeData[size].setParent(null);
        attributeData[size] = null;
      }
    }
    modCount++;
  }
@Override
  public void clear()